2020-05-27 05:15:46 +02:00
|
|
|
if (ENABLE_OSS_FUZZ AND CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
2020-04-08 14:56:12 +02:00
|
|
|
add_executable(fuzz-client EXCLUDE_FROM_ALL
|
2020-03-31 09:33:58 +02:00
|
|
|
main.cpp
|
2020-04-19 17:46:07 +02:00
|
|
|
type2.cpp
|
|
|
|
$<TARGET_OBJECTS:simplecpp_objs_sanitized>
|
2020-11-16 09:11:08 +01:00
|
|
|
$<TARGET_OBJECTS:tinyxml2_objs_sanitized>
|
2020-04-19 17:46:07 +02:00
|
|
|
$<TARGET_OBJECTS:lib_objs_sanitized>)
|
2020-11-16 09:11:08 +01:00
|
|
|
target_include_directories(fuzz-client PRIVATE ${CMAKE_SOURCE_DIR}/lib ${CMAKE_SOURCE_DIR}/externals/simplecpp ${CMAKE_SOURCE_DIR}/externals/tinyxml2 ${CMAKE_SOURCE_DIR}/externals)
|
2020-03-31 09:33:58 +02:00
|
|
|
target_compile_options(fuzz-client PRIVATE -fsanitize=fuzzer)
|
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
|
|
|
|
2020-04-08 14:56:12 +02:00
|
|
|
add_executable(translate EXCLUDE_FROM_ALL
|
2020-03-31 09:33:58 +02:00
|
|
|
translate.cpp
|
|
|
|
type2.cpp)
|
2020-04-19 17:46:07 +02:00
|
|
|
endif()
|