exiv2/fuzz/CMakeLists.txt
2021-07-12 10:53:04 +01:00

15 lines
346 B
CMake

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