1#
2# Copyright (c) 2023 Codecoup
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6# CMakeLists.txt file for creating of mocks library.
7#
8
9add_library(mocks STATIC
10  src/bap_stream.c
11  src/conn.c
12  src/crypto.c
13  src/fatal.c
14  src/gatt.c
15  src/iso.c
16  src/kernel.c
17  src/mem_slab.c
18  src/net_buf.c
19  src/pacs.c
20)
21
22target_include_directories(mocks PUBLIC
23  include
24  ${ZEPHYR_BASE}/tests/bluetooth/audio
25  ${ZEPHYR_BASE}/subsys/bluetooth
26  ${ZEPHYR_BASE}/subsys/bluetooth/audio
27)
28
29add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
30
31target_link_libraries(mocks PRIVATE test_interface host_mocks)
32target_link_options(mocks PUBLIC
33  "SHELL:-T ${ZEPHYR_BASE}/tests/bluetooth/audio/mocks/mock-sections.ld")
34