2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2018-12-11 23:33:23 +08:00
|
|
|
cmake_minimum_required(VERSION 3.13.1)
|
2018-06-06 19:09:26 +08:00
|
|
|
if(BOARD STREQUAL "qemu_cortex_m3")
|
|
|
|
set(CONF_FILE qemu.conf)
|
|
|
|
else()
|
2017-10-27 21:43:34 +08:00
|
|
|
set(CONF_FILE default.conf)
|
2018-06-06 19:09:26 +08:00
|
|
|
endif()
|
2017-10-27 21:43:34 +08:00
|
|
|
|
2017-11-09 00:35:14 +08:00
|
|
|
LIST(APPEND QEMU_EXTRA_FLAGS -serial unix:/tmp/bt-stack-tester)
|
|
|
|
|
2017-10-27 21:43:34 +08:00
|
|
|
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
2018-10-25 22:54:09 +08:00
|
|
|
project(tester)
|
2017-10-27 21:43:34 +08:00
|
|
|
|
|
|
|
zephyr_library_include_directories($ENV{ZEPHYR_BASE}/samples/bluetooth)
|
|
|
|
target_sources(app PRIVATE
|
|
|
|
src/main.c
|
|
|
|
src/bttester.c
|
|
|
|
src/gap.c
|
|
|
|
src/gatt.c
|
|
|
|
)
|
|
|
|
if(CONFIG_BT_L2CAP_DYNAMIC_CHANNEL)
|
|
|
|
target_sources(app PRIVATE src/l2cap.c)
|
|
|
|
endif()
|
2017-12-11 21:04:44 +08:00
|
|
|
|
|
|
|
if(CONFIG_BT_MESH)
|
|
|
|
target_sources(app PRIVATE src/mesh.c)
|
|
|
|
endif()
|