1#
2# CMakeLists.txt file for creating of mocks library.
3#
4
5add_library(mocks STATIC
6	addr_internal.c
7	att_internal.c
8	bt_str.c
9	buf_view.c
10	hci_core.c
11	id.c
12	kernel.c
13	l2cap_internal.c
14	scan.c
15	smp.c
16	spinlock.c
17	sys_clock.c
18)
19
20target_include_directories(mocks PUBLIC
21	${ZEPHYR_BASE}/tests/bluetooth/host/conn/mocks
22	${ZEPHYR_BASE}/subsys/bluetooth
23)
24
25target_compile_options(test_interface INTERFACE -include ztest.h)
26target_link_libraries(mocks PRIVATE test_interface)
27target_link_options(mocks PUBLIC
28	"SHELL:-T ${ZEPHYR_BASE}/tests/bluetooth/host/conn/mocks/mock-sections.ld"
29)
30
31target_compile_options(mocks
32	PRIVATE
33	-DCONFIG_BT_ID_MAX=1
34)
35