mirror of
https://github.com/espressif/esp-mqtt.git
synced 2026-08-03 20:14:15 +02:00
657a2aea77
When creating the client_id for user, the library uses the device MAC. For some of our devices WIFI isn't available and the library needs to select a different MAC to use.
21 lines
1.0 KiB
CMake
21 lines
1.0 KiB
CMake
idf_component_register(SRCS "test_mqtt_client.cpp"
|
|
INCLUDE_DIRS "$ENV{IDF_PATH}/tools/catch"
|
|
REQUIRES cmock mqtt esp_timer esp_hw_support http_parser log)
|
|
|
|
target_compile_options(${COMPONENT_LIB} PUBLIC -fsanitize=address -fconcepts)
|
|
target_link_options(${COMPONENT_LIB} PUBLIC -fsanitize=address)
|
|
|
|
idf_component_get_property(mqtt mqtt COMPONENT_LIB)
|
|
target_compile_definitions(${mqtt} PRIVATE SOC_WIFI_SUPPORTED=1)
|
|
target_compile_options(${mqtt} PUBLIC -fsanitize=address -fconcepts)
|
|
target_link_options(${mqtt} PUBLIC -fsanitize=address)
|
|
|
|
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()
|