1# SPDX-License-Identifier: Apache-2.0 2 3cmake_minimum_required(VERSION 3.20.0) 4 5find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) 6project(battery_service_test) 7 8target_sources(app PRIVATE 9 src/main.c 10 src/central_test.c 11 src/peripheral_test.c 12) 13 14# This contains a variety of helper functions that abstract away common tasks, 15# like scanning, setting up a connection, querying the peer for a given 16# characteristic, etc.. 17add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/common/testlib testlib) 18target_link_libraries(app PRIVATE testlib) 19 20# This contains babblesim-specific helpers, e.g. device synchronization. 21add_subdirectory(${ZEPHYR_BASE}/tests/bsim/babblekit babblekit) 22target_link_libraries(app PRIVATE babblekit) 23 24zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth) 25 26zephyr_include_directories( 27 ${BSIM_COMPONENTS_PATH}/libUtilv1/src/ 28 ${BSIM_COMPONENTS_PATH}/libPhyComv1/src/ 29) 30