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/bap_unicast_client.c
12  src/bap_unicast_server.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)
30
31add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
32
33target_link_libraries(mocks PRIVATE test_interface host_mocks)
34target_link_options(mocks PUBLIC
35  "SHELL:-T ${ZEPHYR_BASE}/tests/bluetooth/audio/mocks/mock-sections.ld")
36