@@ -14,6 +14,8 @@ option(EXCLUDE_PUBSUB "Builds the device client without the IoT Pub Sub Sample F
14
14
option (EXCLUDE_SHADOW "Builds the device client without any of the IoT Shadow Features (Config Shadow Feature and Sample Shadow feature)." OFF )
15
15
option (EXCLUDE_CONFIG_SHADOW "Builds the device client without the IoT Config Shadow Feature." OFF )
16
16
option (EXCLUDE_SAMPLE_SHADOW "Builds the device client without the IoT Sample Shadow Feature." OFF )
17
+ option (EXCLUDE_SENSOR_PUBLISH "Builds the device client without the Sensor Publish over MQTT Feature." OFF )
18
+ option (EXCLUDE_SENSOR_PUBLISH_SAMPLES "Builds the device client without the Sensor Publish sample servers." OFF )
17
19
option (GIT_VERSION "Updates the version number using the Git commit history" ON )
18
20
19
21
if (EXCLUDE_JOBS)
@@ -56,6 +58,14 @@ if (EXCLUDE_SAMPLE_SHADOW)
56
58
add_definitions (-DEXCLUDE_SAMPLE_SHADOW)
57
59
endif ()
58
60
61
+ if (EXCLUDE_SENSOR_PUBLISH)
62
+ add_definitions (-DEXCLUDE_SENSOR_PUBLISH)
63
+ endif ()
64
+
65
+ if (EXCLUDE_SENSOR_PUBLISH_SAMPLES)
66
+ add_definitions (-DEXCLUDE_SENSOR_PUBLISH_SAMPLES)
67
+ endif ()
68
+
59
69
list (APPEND CMAKE_MODULE_PATH "./sdk-cpp-workspace/lib/cmake" )
60
70
61
71
file (GLOB CONFIG_SRC "source/config/*.cpp" )
@@ -107,6 +117,15 @@ if (NOT EXCLUDE_SHADOW)
107
117
endif ()
108
118
endif ()
109
119
120
+ if (NOT EXCLUDE_SENSOR_PUBLISH)
121
+ file (GLOB SENSOR_PUBLISH_SRC "source/sensor-publish/*.cpp" )
122
+ list (APPEND DC_SRC ${SENSOR_PUBLISH_SRC} )
123
+ endif ()
124
+
125
+ if (NOT EXCLUDE_SENSOR_PUBLISH_SAMPLES)
126
+ add_subdirectory (source /samples/sensor-publish)
127
+ endif ()
128
+
110
129
set (DC_PROJECT_NAME aws-iot-device-client)
111
130
set (CMAKE_CXX_STANDARD 11)
112
131
set (CMAKE_C_FLAGS_DEBUGOPT "" )
0 commit comments