1# SPDX-License-Identifier: Apache-2.0 2 3cmake_minimum_required(VERSION 3.20.0) 4 5if (NOT DEFINED ENV{BSIM_COMPONENTS_PATH}) 6 message(FATAL_ERROR "This test requires the BabbleSim simulator. Please set \ 7 the environment variable BSIM_COMPONENTS_PATH to point to its \ 8 components folder. More information can be found in \ 9 https://babblesim.github.io/folder_structure_and_env.html") 10endif() 11 12find_package(Zephyr HINTS $ENV{ZEPHYR_BASE}) 13project(bsim_test_ccc_update) 14 15add_subdirectory(${ZEPHYR_BASE}/tests/bsim/babblekit babblekit) 16target_link_libraries(app PRIVATE babblekit) 17 18target_sources(app PRIVATE 19 src/main.c 20 src/common.c 21 22 src/central.c 23 src/peripheral.c 24) 25 26zephyr_include_directories( 27 $ENV{BSIM_COMPONENTS_PATH}/libUtilv1/src/ 28 $ENV{BSIM_COMPONENTS_PATH}/libPhyComv1/src/ 29 30 ${ZEPHYR_BASE}/subsys/bluetooth/host/ 31) 32