Debian Codegraph @

tests/CMakeLists.txt

raw
1 add_executable(chdr-benchmark benchmark.c)
2 target_link_libraries(chdr-benchmark PRIVATE chdr-static)
3
4 # fuzzing
5 if(BUILD_FUZZER)
6 add_executable(chdr-fuzz fuzz.c)
7 target_link_options(chdr-fuzz PRIVATE "-fsanitize=address,fuzzer")
8 target_link_libraries(chdr-fuzz PRIVATE chdr-static)
9 add_custom_target(fuzz
10 COMMAND "$<TARGET_FILE:chdr-fuzz>" "-max_len=131072"
11 DEPENDS chdr-fuzz)
12 endif()