diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-08-23 11:18:44 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-08-23 11:18:44 +0200 |
| commit | 359422c97cce93bbb27051f9df3efb45bd0b9052 (patch) | |
| tree | 2e352bb852a25390d40d45e199f835d218ad497f /libs/zip/fuzz/CMakeLists.txt | |
| parent | 8ea59863c5d13e68e080cf7612047ea4c655292c (diff) | |
settings file writing
Diffstat (limited to 'libs/zip/fuzz/CMakeLists.txt')
| -rw-r--r-- | libs/zip/fuzz/CMakeLists.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libs/zip/fuzz/CMakeLists.txt b/libs/zip/fuzz/CMakeLists.txt new file mode 100644 index 0000000..ab5d8aa --- /dev/null +++ b/libs/zip/fuzz/CMakeLists.txt @@ -0,0 +1,24 @@ +# Utilized by OSSFuzz to build the harness(es) for continuous fuzz-testing +# OSSFuzz defines the following environment variables, that this target relies upon: +# CXX, CFLAGS, LIB_FUZZING_ENGINE, OUT + +set(CMAKE_C_STANDARD 23) + +add_definitions(-DNDEBUG) # Do not want assertions + +if (DEFINED ENV{CFLAGS}) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} $ENV{CFLAGS}") +endif () + +add_executable(fuzz_entry fuzz_entry.c) +target_link_libraries(fuzz_entry PRIVATE ${PROJECT_NAME} $ENV{LIB_FUZZING_ENGINE}) + +add_executable(fuzz_stream fuzz_stream.c) +target_link_libraries(fuzz_stream PRIVATE ${PROJECT_NAME} $ENV{LIB_FUZZING_ENGINE}) + +if (DEFINED ENV{OUT}) + install(TARGETS fuzz_entry DESTINATION $ENV{OUT}) + install(TARGETS fuzz_stream DESTINATION $ENV{OUT}) +else () + message(WARNING "Cannot install if $OUT is not defined!") +endif ()
\ No newline at end of file |
