2021-06-30 18:39:29 +02:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
|
|
2023-01-13 20:32:07 +01:00
|
|
|
|
2021-06-30 18:39:29 +02:00
|
|
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
2024-07-19 14:18:48 +02:00
|
|
|
if(${IDF_TARGET} STREQUAL "linux")
|
|
|
|
|
set(EXTRA_COMPONENT_DIRS "../../../../common_components/linux_compat")
|
|
|
|
|
set(COMPONENTS main)
|
|
|
|
|
endif()
|
|
|
|
|
|
2021-06-30 18:39:29 +02:00
|
|
|
project(mdns_host)
|
2023-03-20 12:17:36 +01:00
|
|
|
|
2024-07-19 14:18:48 +02:00
|
|
|
# Enable sanitizers only without console (we'd see some leaks on argtable when console exits)
|
|
|
|
|
if(NOT CONFIG_TEST_CONSOLE AND CONFIG_IDF_TARGET_LINUX)
|
2023-03-20 12:17:36 +01:00
|
|
|
idf_component_get_property(mdns mdns COMPONENT_LIB)
|
|
|
|
|
target_link_options(${mdns} INTERFACE -fsanitize=address -fsanitize=undefined)
|
2024-07-19 14:18:48 +02:00
|
|
|
endif()
|