blob: 4d9e3b510faa32fc46c94edfe8db90c7a2200164 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
include_directories(
${PROJECT_SOURCE_DIR}/include/cppunit
${PROJECT_SOURCE_DIR}/api
)
add_executable (test_functiondef01 test_functiondef01.cpp)
add_executable (test_uuid test_uuid.cpp)
add_executable (test_basictypes01 test_basictypes01.cpp)
add_executable (test_attpdu01 test_attpdu01.cpp)
add_executable (test_lfringbuffer01 test_lfringbuffer01.cpp)
add_executable (test_lfringbuffer11 test_lfringbuffer11.cpp)
set_target_properties(test_functiondef01
PROPERTIES
CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON
COMPILE_FLAGS "-Wall -Wextra -Werror"
)
set_target_properties(test_uuid
PROPERTIES
CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON
COMPILE_FLAGS "-Wall -Wextra -Werror"
)
set_target_properties(test_basictypes01
PROPERTIES
CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON
COMPILE_FLAGS "-Wall -Wextra -Werror"
)
set_target_properties(test_attpdu01
PROPERTIES
CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON
COMPILE_FLAGS "-Wall -Wextra -Werror"
)
set_target_properties(test_lfringbuffer01
PROPERTIES
CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON
COMPILE_FLAGS "-Wall -Wextra -Werror"
)
set_target_properties(test_lfringbuffer11
PROPERTIES
CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON
COMPILE_FLAGS "-Wall -Wextra -Werror"
)
target_link_libraries (test_functiondef01 direct_bt)
target_link_libraries (test_basictypes01 direct_bt)
target_link_libraries (test_uuid direct_bt)
target_link_libraries (test_attpdu01 direct_bt)
target_link_libraries (test_lfringbuffer01 direct_bt)
target_link_libraries (test_lfringbuffer11 direct_bt)
add_test (NAME functiondef01 COMMAND test_functiondef01)
add_test (NAME basictypes01 COMMAND test_basictypes01)
add_test (NAME uuid COMMAND test_uuid)
add_test (NAME attpdu01 COMMAND test_attpdu01)
add_test (NAME lfringbuffer01 COMMAND test_lfringbuffer01)
add_test (NAME lfringbuffer11 COMMAND test_lfringbuffer11)
|