iotstack-device-sdk-c/samples/CMakeLists.txt

20 lines
639 B
CMake

link_libraries(iot_sdk iot_platform)
if (ENABLE_FEATURE_MQTT_COMM)
add_executable(mqtt_sample mqtt/mqtt_sample.c)
add_dependencies(mqtt_sample iot_sdk iot_platform)
endif ()
if (ENABLE_FEATURE_OTA)
add_executable(ota_sample ota/ota_sample.c)
add_dependencies(ota_sample iot_sdk iot_platform)
endif ()
if (ENABLE_FEATURE_AUTH_MODE_DYNAMIC)
add_executable(dynamic_auth_sample dynamic_auth/dynamic_auth_sample.c)
add_dependencies(dynamic_auth_sample iot_sdk iot_platform)
endif ()
if (ENABLE_FEATURE_OTA)
add_executable(ota_sample ota/ota_sample.c)
add_dependencies(ota_sample iot_sdk iot_platform)
endif ()