Files
esp-mqtt/host_test/main/CMakeLists.txt
T

13 lines
650 B
CMake
Raw Normal View History

2021-02-16 15:47:10 +00:00
idf_component_register(SRCS "test_mqtt_client.cpp"
INCLUDE_DIRS "$ENV{IDF_PATH}/tools/catch"
2022-09-05 15:46:10 +02:00
REQUIRES cmock mqtt esp_timer esp_hw_support http_parser log)
2023-05-15 14:29:32 +04:00
if(CONFIG_GCOV_ENABLED)
target_compile_options(${COMPONENT_LIB} PUBLIC --coverage -fprofile-arcs -ftest-coverage)
target_link_options(${COMPONENT_LIB} PUBLIC --coverage -fprofile-arcs -ftest-coverage)
idf_component_get_property(mqtt mqtt COMPONENT_LIB)
target_compile_options(${mqtt} PUBLIC --coverage -fprofile-arcs -ftest-coverage)
target_link_options(${mqtt} PUBLIC --coverage -fprofile-arcs -ftest-coverage)
endif()