1#
2# CMakeLists.txt file for creating of mocks library.
3#
4
5add_library(mocks STATIC
6            mocks/kernel.c
7            mocks/hci_core.c
8            mocks/hci_core_expects.c
9            mocks/aes.c
10            mocks/aes_expects.c
11            mocks/prng.c
12            mocks/prng_expects.c
13
14            ${ZEPHYR_BASE}/subsys/bluetooth/host/crypto_psa.c
15            ${ZEPHYR_BASE}/subsys/logging/log_minimal.c
16            ${ZEPHYR_BASE}/subsys/bluetooth/common/bt_str.c
17            ${ZEPHYR_BASE}/subsys/bluetooth/host/uuid.c
18)
19
20target_include_directories(mocks PUBLIC
21  .
22  ${ZEPHYR_BASE}/subsys/bluetooth
23  ${ZEPHYR_BASE}/subsys/bluetooth/host
24  ${ZEPHYR_BASE}/tests/bluetooth/host
25  ${ZEPHYR_BASE}/tests/bluetooth/host/crypto/mocks
26  ${ZEPHYR_MBEDTLS_MODULE_DIR}/include
27)
28
29target_link_libraries(mocks PRIVATE test_interface)
30