1# SPDX-License-Identifier: Apache-2.0 2 3cmake_minimum_required(VERSION 3.20.0) 4 5find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) 6project(bt_keys_get_addr) 7 8add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) 9add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/keys/mocks mocks) 10 11target_link_libraries(testbinary PRIVATE mocks host_mocks) 12 13target_sources(testbinary 14 PRIVATE 15 src/main.c 16 src/test_suite_full_list_invalid_values.c 17 src/test_suite_full_list_no_overwrite.c 18 src/test_suite_full_list_overwrite_oldest.c 19 ${ZEPHYR_BASE}/subsys/bluetooth/common/bt_str.c 20 ${ZEPHYR_BASE}/subsys/bluetooth/host/uuid.c 21 22 # Unit under test 23 ${ZEPHYR_BASE}/subsys/bluetooth/host/keys.c 24 ${ZEPHYR_BASE}/subsys/bluetooth/common/addr.c 25) 26