zephyr/tests/bluetooth/controller/mock_ctrl/CMakeLists.txt
Andries Kruithof f0c610ce0d bluetooth: controller: update unittests for improved ZTEST framework
Update the unittests for feature exchange to use the new ZTEST API
Here we only update the feature exchange procedure. The remaining
unittests will be done in a next PR

Mocks, helper routines and the Unit Under Test are splitted out as
a library instead of adding them to the file list

Signed-off-by: Andries Kruithof <andries.kruithof@nordicsemi.no>
2023-01-20 14:35:08 +01:00

40 lines
833 B
CMake

#
# Copyright (c) 2022 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: Apache-2.0
#
# CMakeLists.txt file for creating of mocks library.
#
add_library(mocks STATIC
src/kernel.c
src/ecb.c
src/mayfly.c
src/lll.c
src/lll_conn.c
src/ll_assert.c
src/assert.c
src/util.c
src/ticker.c
src/ull.c
src/ull_conn_iso.c
src/ull_peripheral.c
src/ull_peripheral_iso.c
src/ull_central.c
src/ull_scan.c
src/lll_clock.c
)
target_include_directories(mocks PUBLIC
include
${ZEPHYR_BASE}/subsys/bluetooth/controller/include
${ZEPHYR_BASE}/subsys/bluetooth/controller
${ZEPHYR_BASE}/subsys/bluetooth
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic
${ZEPHYR_BASE}/include/zephyr/bluetooth
)
target_link_libraries(mocks PRIVATE test_interface)