ucloud-iot-device-sdk-c/samples/CMakeLists.txt

46 lines
1.7 KiB
CMake
Raw Permalink Normal View History

2019-08-01 10:30:53 +08:00
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_DEVICE_SHADOW)
add_executable(shadow_sample shadow/shadow_sample.c)
add_dependencies(shadow_sample iot_sdk iot_platform)
add_executable(smart_bracelet_heart_rate_shadow_sample shadow/smart_bracelet_heart_rate_shadow_sample.c)
add_dependencies(smart_bracelet_heart_rate_shadow_sample iot_sdk iot_platform)
add_executable(smart_bracelet_walk_step_shadow_sample shadow/smart_bracelet_walk_step_shadow_sample.c)
add_dependencies(smart_bracelet_walk_step_shadow_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_DEVICE_MODEL)
add_executable(dev_model_sample dev_model/dev_model_sample.c)
add_dependencies(dev_model_sample iot_sdk iot_platform)
2020-06-12 17:39:42 +08:00
add_executable(dev_model_sample_ex dev_model/dev_model_sample_ex.c)
add_dependencies(dev_model_sample_ex iot_sdk iot_platform)
2019-08-01 10:30:53 +08:00
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)
2019-11-22 15:57:51 +08:00
endif ()
2020-02-21 17:33:21 +08:00
if (ENABLE_FEATURE_HTTP_CLIENT)
add_executable(download_file_sample http/download_file_sample.c)
2019-11-22 17:38:06 +08:00
add_dependencies(download_file_sample iot_sdk iot_platform)
2020-02-21 17:33:21 +08:00
add_executable(upload_file_sample http/upload_file_sample.c)
add_dependencies(upload_file_sample iot_sdk iot_platform)
add_executable(http_client_sample http/http_client_sample.c)
add_dependencies(http_client_sample iot_sdk iot_platform)
2019-08-01 10:30:53 +08:00
endif ()