2020-03-31 09:33:58 +02:00
|
|
|
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
|
|
add_executable(fuzz-client
|
|
|
|
main.cpp
|
|
|
|
type2.cpp)
|
|
|
|
target_include_directories(fuzz-client PRIVATE ${CMAKE_SOURCE_DIR}/lib ${CMAKE_SOURCE_DIR}/externals/simplecpp ${CMAKE_SOURCE_DIR}/externals/tinyxml ${CMAKE_SOURCE_DIR}/externals)
|
|
|
|
target_compile_options(fuzz-client PRIVATE -fsanitize=fuzzer)
|
|
|
|
target_link_libraries(fuzz-client PRIVATE simplecpp_objs_sanitized tinyxml_objs_sanitized lib_objs_sanitized)
|
2020-04-01 18:02:25 +02:00
|
|
|
# requires CMake >= 3.13
|
|
|
|
#target_link_options(fuzz-client PRIVATE -fsanitize=address -fsanitize=fuzzer)
|
|
|
|
target_link_libraries(fuzz-client PRIVATE -fsanitize=address -fsanitize=fuzzer)
|
2020-03-31 09:33:58 +02:00
|
|
|
|
|
|
|
add_executable(translate
|
|
|
|
translate.cpp
|
|
|
|
type2.cpp)
|
|
|
|
endif()
|