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_store) 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 21 src/central.c 22 src/peripheral.c 23) 24 25zephyr_include_directories( 26 $ENV{BSIM_COMPONENTS_PATH}/libUtilv1/src/ 27 $ENV{BSIM_COMPONENTS_PATH}/libPhyComv1/src/ 28 29 ${ZEPHYR_BASE}/subsys/bluetooth/host/ 30) 31