CMakeLists.txt 541 B

12345678910111213141516
  1. cmake_minimum_required(VERSION 3.5)
  2. include($ENV{IDF_PATH}/tools/cmake/project.cmake)
  3. if(${IDF_TARGET} STREQUAL "linux")
  4. set(EXTRA_COMPONENT_DIRS "../../../../common_components/linux_compat")
  5. set(COMPONENTS main)
  6. endif()
  7. project(mdns_host)
  8. # Enable sanitizers only without console (we'd see some leaks on argtable when console exits)
  9. if(NOT CONFIG_TEST_CONSOLE AND CONFIG_IDF_TARGET_LINUX)
  10. idf_component_get_property(mdns mdns COMPONENT_LIB)
  11. target_link_options(${mdns} INTERFACE -fsanitize=address -fsanitize=undefined)
  12. endif()