CMakeLists.txt 617 B

12345678910111213141516171819202122232425
  1. #
  2. # Copyright (c) 2020 Actions Semiconductor
  3. #
  4. # SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Actions
  5. #
  6. if (CONFIG_ACTS_BT)
  7. zephyr_include_directories(./include)
  8. target_include_directories(acts_bluetooth INTERFACE
  9. .
  10. ./src/inc
  11. )
  12. add_subdirectory(src)
  13. add_subdirectory(common)
  14. add_subdirectory_ifdef(CONFIG_BT_CONN services)
  15. if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/libbt_stack/CMakeLists.txt)
  16. add_subdirectory(libbt_stack)
  17. else()
  18. zephyr_library_include_directories(${CMAKE_CURRENT_LIST_DIR})
  19. zephyr_library_import(bt_stack ${CMAKE_CURRENT_LIST_DIR}/libbt_stack.a)
  20. endif()
  21. endif()