exiv2/fuzz/CMakeLists.txt
2023-06-02 00:25:13 +08: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)