CMakeLists.txt 806 B

123456789101112131415161718192021222324252627282930313233
  1. # Copyright (c) 2020 Actions Semiconductor Co., Ltd
  2. #
  3. # SPDX-License-Identifier: Apache-2.0
  4. if(CONFIG_BLUETOOTH OR CONFIG_BT_STACK)
  5. set(ZEPHYR_CURRENT_LIBRARY acts_bluetooth)
  6. add_library(acts_bluetooth INTERFACE)
  7. zephyr_include_directories(
  8. include
  9. bt_porting
  10. )
  11. target_include_directories(acts_bluetooth INTERFACE
  12. include
  13. ./bt_porting
  14. )
  15. zephyr_library()
  16. add_subdirectory(bt_porting)
  17. add_subdirectory_ifdef(CONFIG_BT_MANAGER bt_manager)
  18. add_subdirectory_ifdef(CONFIG_BT_STACK bt_stack)
  19. add_subdirectory_ifdef(CONFIG_BT_SERVICE bt_service)
  20. add_subdirectory_ifdef(CONFIG_BT_A2DP_TRS bt_trans)
  21. zephyr_library_link_libraries(acts_bluetooth)
  22. zephyr_library_link_libraries_ifdef(CONFIG_FAT_FILESYSTEM_ELM ELMFAT INTERFACE)
  23. target_link_libraries(acts_bluetooth INTERFACE zephyr_interface)
  24. endif()