CMakeLists.txt 596 B

12345678910111213
  1. IF(CMAKE_C_COMPILER_ID STREQUAL "Clang")
  2. ADD_SUBDIRECTORY(fuzz)
  3. ADD_EXECUTABLE(dhpf-san dns_handle_packet_file.c)
  4. TARGET_INCLUDE_DIRECTORIES(dhpf-san PRIVATE ${PROJECT_SOURCE_DIR})
  5. TARGET_COMPILE_OPTIONS(dhpf-san PRIVATE -g -fno-omit-frame-pointer -fsanitize=undefined,address,leak -fno-sanitize-recover=all)
  6. TARGET_LINK_OPTIONS(dhpf-san PRIVATE -fsanitize=undefined,address,leak)
  7. TARGET_LINK_LIBRARIES(dhpf-san umdns-lib-san)
  8. ENDIF()
  9. ADD_EXECUTABLE(dhpf dns_handle_packet_file.c)
  10. TARGET_INCLUDE_DIRECTORIES(dhpf PRIVATE ${PROJECT_SOURCE_DIR})
  11. TARGET_LINK_LIBRARIES(dhpf umdns-lib)