iotstack-device-sdk-c/tests/unit_test/CMakeLists.txt

16 lines
517 B
CMake
Raw Permalink Normal View History

2021-01-22 16:31:40 +08:00
include_directories(
include
${CMAKE_SOURCE_DIR}/external_libs/googletest/include
)
link_libraries(gtest iot_sdk iot_platform)
if (ENABLE_FEATURE_MQTT_COMM)
add_executable(unit_mqtt_test src/unit_mqtt_test.cpp)
set_target_properties(unit_mqtt_test PROPERTIES LINKER_LANGUAGE CXX)
endif ()
if (ENABLE_FEATURE_AUTH_MODE_DYNAMIC)
add_executable(unit_dynamic_auth_test src/unit_dynamic_auth_test.cpp)
set_target_properties(unit_dynamic_auth_test PROPERTIES LINKER_LANGUAGE CXX)
endif ()