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_clear)
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_bt_settings.c
18    src/test_suite_clear_invalid_inputs.c
19
20    # Unit under test
21    ${ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
22    ${ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
23)
24