mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-23 09:41:03 +00:00
test/mesh: add mesh_message_test to CMake build
This commit is contained in:
parent
dd2dbe6a83
commit
84242f8829
@ -13,7 +13,7 @@ include_directories(../../3rd-party/micro-ecc)
|
||||
include_directories(../../3rd-party/tinydir)
|
||||
include_directories(../../src)
|
||||
include_directories(../../platform/posix)
|
||||
# include_directories(../../platform/embedded)
|
||||
include_directories(../rijndael)
|
||||
include_directories(.)
|
||||
|
||||
file(GLOB SOURCES_SRC "../../src/*.c" "../../src/*.h" "../../example/sco_demo_util.c" "../../example/sco_demo_util.h")
|
||||
@ -66,3 +66,36 @@ foreach(EXAMPLE_FILE ${EXAMPLES_C})
|
||||
endif()
|
||||
target_link_libraries(${EXAMPLE} btstack)
|
||||
endforeach(EXAMPLE_FILE)
|
||||
|
||||
# create mesh_message_test target
|
||||
|
||||
## hard-coded to use CPPUtest
|
||||
include_directories( /usr/local/include)
|
||||
link_directories( /usr/local/lib)
|
||||
link_libraries(CppUTest CppUTestExt)
|
||||
add_executable(mesh_message_test
|
||||
../../src/mesh/mesh_foundation.c
|
||||
../../src/mesh/mesh_node.c
|
||||
../../src/mesh/mesh_iv_index_seq_number.c
|
||||
../../src/mesh/mesh_network.c
|
||||
../../src/mesh/mesh_peer.c
|
||||
../../src/mesh/mesh_lower_transport.c
|
||||
../../src/mesh/mesh_upper_transport.c
|
||||
../../src/mesh/mesh_virtual_addresses.c
|
||||
../../src/mesh/mesh_keys.c
|
||||
../../src/mesh/mesh_crypto.c
|
||||
../../src/btstack_memory.c
|
||||
../../src/btstack_memory_pool.c
|
||||
../../src/btstack_util.c
|
||||
../../src/btstack_crypto.c
|
||||
../../src/btstack_linked_list.c
|
||||
../../src/hci_dump.c
|
||||
../../src/hci_cmd.c
|
||||
../../3rd-party/micro-ecc/uECC.c
|
||||
../rijndael/rijndael.c
|
||||
mock.c
|
||||
mesh_message_test.cpp
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
@ -65,7 +65,7 @@ mesh_pts: mesh_pts.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${S
|
||||
provisioner: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${SM_OBJ} pb_adv.o mesh_crypto.o provisioning_provisioner.o mesh_keys.o mesh_foundation.o mesh_network.o provisioner.o
|
||||
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
|
||||
|
||||
mesh_message_test: mesh_foundation.o mesh_node.o mesh_message_test.c mesh_iv_index_seq_number.o mesh_network.o mesh_peer.o mesh_lower_transport.o mesh_upper_transport.o mesh_virtual_addresses.o mesh_keys.o mesh_crypto.o btstack_memory.o btstack_memory_pool.o btstack_util.o btstack_crypto.o btstack_linked_list.o hci_dump.o uECC.o mock.o rijndael.o hci_cmd.o
|
||||
mesh_message_test: mesh_message_test.cpp mesh_foundation.o mesh_node.o mesh_iv_index_seq_number.o mesh_network.o mesh_peer.o mesh_lower_transport.o mesh_upper_transport.o mesh_virtual_addresses.o mesh_keys.o mesh_crypto.o btstack_memory.o btstack_memory_pool.o btstack_util.o btstack_crypto.o btstack_linked_list.o hci_dump.o uECC.o mock.o rijndael.o hci_cmd.o
|
||||
g++ $^ ${CFLAGS} ${LDFLAGS} -o $@
|
||||
|
||||
sniffer: ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${SM_OBJ} mesh_keys.o mesh_network.o mesh_foundation.o sniffer.c
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include "mesh/mesh_network.h"
|
||||
#include "mesh/mesh_upper_transport.h"
|
||||
#include "mesh/provisioning.h"
|
||||
#include "mesh_peer.h"
|
||||
#include "mesh/mesh_peer.h"
|
||||
|
||||
extern "C" int mock_process_hci_cmd(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user