summaryrefslogtreecommitdiffstats
path: root/testfiles/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'testfiles/CMakeLists.txt')
-rw-r--r--testfiles/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/testfiles/CMakeLists.txt b/testfiles/CMakeLists.txt
index 923898fc3..62b028729 100644
--- a/testfiles/CMakeLists.txt
+++ b/testfiles/CMakeLists.txt
@@ -32,7 +32,12 @@ foreach(source ${TEST_SOURCES})
endforeach()
add_subdirectory(rendering_tests)
+
if(WITH_FUZZ)
+ # to use the fuzzer, make sure you use the right compiler (clang)
+ # with the right flags -fsanitize=address -fsanitize-coverage=edge,trace-pc-guard,indirect-calls,trace-cmp,trace-div,trace-gep -fno-omit-frame-pointer
+ # (see libfuzzer doc for info in flags)
+ # first line is for integration into oss-fuzz https://github.com/google/oss-fuzz
add_executable(fuzz fuzzer.cpp)
if(EXISTS ${LIB_FUZZING_ENGINE})
target_link_libraries(fuzz inkscape_base -lFuzzingEngine)