CMakeLists.txt 368 B

12345678910111213141516171819202122232425
  1. # SPDX-License-Identifier: Apache-2.0
  2. if(CONFIG_LIB_SEC)
  3. set(ZEPHYR_CURRENT_LIBRARY libsec)
  4. add_library(libsec INTERFACE)
  5. zephyr_include_directories(
  6. include
  7. )
  8. target_include_directories(libsec INTERFACE
  9. include
  10. )
  11. zephyr_library()
  12. add_subdirectory(src)
  13. zephyr_library_link_libraries(libsec)
  14. target_link_libraries(libsec INTERFACE zephyr_interface)
  15. endif()