2021-02-16 15:47:10 +00:00
|
|
|
idf_component_register(SRCS "test_mqtt_client.cpp"
|
2024-05-22 14:58:58 +02:00
|
|
|
REQUIRES cmock mqtt esp_timer esp_hw_support http_parser log
|
|
|
|
|
WHOLE_ARCHIVE)
|
2023-05-15 14:29:32 +04:00
|
|
|
|
2025-09-23 15:26:40 +02:00
|
|
|
target_compile_options(${COMPONENT_LIB} PUBLIC -fsanitize=address -Wno-missing-field-initializers)
|
2023-03-30 15:16:14 +02:00
|
|
|
target_link_options(${COMPONENT_LIB} PUBLIC -fsanitize=address)
|
2024-05-22 14:58:58 +02:00
|
|
|
target_link_libraries(${COMPONENT_LIB} PUBLIC Catch2::Catch2WithMain)
|
2023-03-30 15:16:14 +02:00
|
|
|
|
|
|
|
|
idf_component_get_property(mqtt mqtt COMPONENT_LIB)
|
2024-03-13 15:17:44 +01:00
|
|
|
target_compile_definitions(${mqtt} PRIVATE SOC_WIFI_SUPPORTED=1)
|
2025-09-23 15:26:40 +02:00
|
|
|
target_compile_options(${mqtt} PUBLIC -fsanitize=address)
|
2023-03-30 15:16:14 +02:00
|
|
|
target_link_options(${mqtt} PUBLIC -fsanitize=address)
|
|
|
|
|
|
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)
|
2024-03-13 15:17:44 +01:00
|
|
|
|
2023-05-15 14:29:32 +04:00
|
|
|
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()
|