1# 2# Copyright (c) 2023 Codecoup 3# Coperight (c) 2024 Demant A/S 4# Copyright (c) 2024 Nordic Semiconductor ASA 5# 6# SPDX-License-Identifier: Apache-2.0 7# 8# CMakeLists.txt file for creating of mocks library. 9# 10 11add_library(mocks STATIC 12 src/bap_stream.c 13 src/conn.c 14 src/crypto.c 15 src/fatal.c 16 src/gatt.c 17 src/iso.c 18 src/kernel.c 19 src/mem_slab.c 20 src/net_buf.c 21 src/pacs.c 22) 23 24target_include_directories(mocks PUBLIC 25 include 26 ${ZEPHYR_BASE}/tests/bluetooth/audio 27 ${ZEPHYR_BASE}/subsys/bluetooth 28 ${ZEPHYR_BASE}/subsys/bluetooth/audio 29 ${ZEPHYR_BASE}/subsys/bluetooth/common 30 ${ZEPHYR_BASE}/include/zephyr 31) 32 33target_sources(testbinary PRIVATE 34 ${ZEPHYR_BASE}/subsys/bluetooth/common/addr.c 35 ${ZEPHYR_BASE}/subsys/bluetooth/common/bt_str.c 36 ${ZEPHYR_BASE}/subsys/bluetooth/host/uuid.c 37 ${ZEPHYR_BASE}/subsys/logging/log_minimal.c 38 ${ZEPHYR_BASE}/include/zephyr/kernel.h 39) 40 41add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) 42 43target_link_libraries(mocks PRIVATE test_interface host_mocks) 44target_link_options(mocks PUBLIC 45 "SHELL:-T ${ZEPHYR_BASE}/tests/bluetooth/audio/mocks/mock-sections.ld") 46