File tree 1 file changed +18
-6
lines changed
1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,11 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
22
22
23
23
##########################################################################
24
24
25
- set (TEST_TARGET testArduinoIoTCloud )
25
+ set (TEST_TARGET ${CMAKE_PROJECT_NAME} )
26
26
27
- set (TEST_SRCS
28
- src/Arduino.cpp
29
-
30
- src/test_main.cpp
27
+ ##########################################################################
31
28
29
+ set (TEST_SRCS
32
30
src/test_OTALogic.cpp
33
31
34
32
src/test_addPropertyReal.cpp
@@ -42,10 +40,14 @@ set(TEST_SRCS
42
40
src/test_publishOnChangeRateLimit.cpp
43
41
src/test_readOnly.cpp
44
42
src/test_writeOnly.cpp
43
+ )
45
44
45
+ set (TEST_UTIL_SRCS
46
46
src/util/CBORTestUtil.cpp
47
47
src/util/OTATestUtil.cpp
48
+ )
48
49
50
+ set (TEST_DUT_SRCS
49
51
../../src/utility/ota/crc.cpp
50
52
../../src/utility/ota/OTALogic.cpp
51
53
@@ -65,6 +67,16 @@ set(TEST_SRCS
65
67
66
68
##########################################################################
67
69
70
+ set (TEST_TARGET_SRCS
71
+ src/Arduino.cpp
72
+ src/test_main.cpp
73
+ ${TEST_SRCS}
74
+ ${TEST_UTIL_SRCS}
75
+ ${TEST_DUT_SRCS}
76
+ )
77
+
78
+ ##########################################################################
79
+
68
80
add_compile_definitions (HOST)
69
81
add_compile_options (-Wall -Wextra -Wpedantic -Werror)
70
82
@@ -75,7 +87,7 @@ set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "--coverage")
75
87
76
88
add_executable (
77
89
${TEST_TARGET}
78
- ${TEST_SRCS }
90
+ ${TEST_TARGET_SRCS }
79
91
)
80
92
81
93
##########################################################################
You can’t perform that action at this time.
0 commit comments