CMakeLists.txt 546 B

123456789101112131415161718192021
  1. # SPDX-License-Identifier: Apache-2.0
  2. #list(APPEND ZEPHYR_EXTRA_MODULES ${CMAKE_CURRENT_SOURCE_DIR}/../../modules/framework)
  3. cmake_minimum_required(VERSION 3.13.1)
  4. find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
  5. project(bt_watch)
  6. target_include_directories(app PRIVATE
  7. ./prebuild/bt_production_test
  8. )
  9. target_link_libraries(app INTERFACE ${CMAKE_CURRENT_LIST_DIR}/prebuild/bt_production_test/libbt_test.a)
  10. add_subdirectory(src)
  11. if(CONFIG_STACK_CANARIES)
  12. zephyr_library_compile_options(-DAPP_BT_WATCH -fstack-protector-all)
  13. endif()