1# SPDX-License-Identifier: Apache-2.0 2 3cmake_minimum_required(VERSION 3.20.0) 4 5LIST(APPEND QEMU_EXTRA_FLAGS -serial unix:/tmp/bt-stack-tester) 6 7find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) 8project(tester) 9 10zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth) 11zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/bluetooth/mesh) 12zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/bluetooth/host) 13target_sources(app PRIVATE 14 src/main.c 15 src/btp.c 16 src/btp_core.c 17 src/btp_gap.c 18 src/btp_gatt.c 19 ) 20if(CONFIG_BT_L2CAP_DYNAMIC_CHANNEL) 21target_sources(app PRIVATE src/btp_l2cap.c) 22endif() 23 24if(CONFIG_BT_MESH) 25target_sources(app PRIVATE src/btp_mesh.c) 26endif() 27 28if(CONFIG_BT_IAS OR CONFIG_BT_IAS_CLIENT) 29target_sources(app PRIVATE src/btp_ias.c) 30endif() 31 32if(CONFIG_BT_OTS) 33 target_sources(app PRIVATE src/btp_ots.c) 34endif() 35 36zephyr_library_include_directories(src src/btp src/audio/btp) 37add_subdirectory_ifdef(CONFIG_BT_AUDIO src/audio) 38