Register tests in CMakeLists

This commit is contained in:
Mohammad Nejati authored and Mohammad Nejati committed 2024-11-25 11:41:40 +03:30
1 parent 827ecf5e93
commit 9c184406ea
11 files changed
+44

No files matched your search

+6
View File
@@ -110,6 +110,12 @@ function(add_boost_beast_fuzzer NAME)
add_dependencies(boost_beast_fuzz_all fuzz_${NAME})
set_target_properties(fuzz_${NAME} PROPERTIES FOLDER "UBSAN_OPTIONS=halt_on_error=false")
set_target_properties(fuzz_${NAME} PROPERTIES FOLDER "fuzzing")
if (BOOST_BEAST_FUZZER_ADD_TO_CTEST)
add_test(
NAME test_fuzz_${NAME}
COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target fuzz_${NAME})
add_dependencies(tests test_fuzz_${NAME})
endif()
endfunction()
# Register all fuzzers