16 lines
517 B
CMake
16 lines
517 B
CMake
|
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 ()
|