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

12 lines
369 B
CMake
Raw Normal View History

2021-01-22 16:31:40 +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_AUTH_MODE_DYNAMIC)
add_executable(dynamic_auth_sample dynamic_auth/dynamic_auth_sample.c)
add_dependencies(dynamic_auth_sample iot_sdk iot_platform)
endif ()