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}) 6 7project(bt_keys_find_addr) 8 9add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) 10add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/keys/mocks mocks) 11 12target_link_libraries(testbinary PRIVATE mocks host_mocks) 13 14target_sources(testbinary 15 PRIVATE 16 src/main.c 17 src/test_suite_find_addr_invalid_inputs.c 18 19 # Unit under test 20 ${ZEPHYR_BASE}/subsys/bluetooth/host/keys.c 21 ${ZEPHYR_BASE}/subsys/bluetooth/common/addr.c 22) 23