You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
exiv2/fuzz/CMakeLists.txt

21 lines
534 B
CMake

macro(fuzzer name)
add_executable(${name} ${name}.cpp)
if(EXIV2_TEAM_OSS_FUZZ)
set_target_properties(${name}
PROPERTIES
LINK_FLAGS "${LIB_FUZZING_ENGINE}")
else()
set_target_properties(${name}
PROPERTIES
COMPILE_FLAGS "-fsanitize=fuzzer"
LINK_FLAGS "-fsanitize=fuzzer")
endif()
target_link_libraries(${name}
PRIVATE
exiv2lib
)
endmacro()
fuzzer(fuzz-read-print-write)