Made use of libfuzzer

This commit is contained in:
eidheim 2020-08-08 10:52:11 +02:00
commit f6df4cde4e
9 changed files with 107 additions and 13 deletions

View file

@ -4,6 +4,7 @@ project (Simple-Web-Server)
option(USE_STANDALONE_ASIO "set ON to use standalone Asio instead of Boost.Asio" OFF)
option(BUILD_TESTING "set ON to build library tests" OFF)
option(BUILD_FUZZING "set ON to build library fuzzers" OFF)
option(USE_OPENSSL "set OFF to build without OpenSSL" ON)
add_library(simple-web-server INTERFACE)
@ -79,7 +80,9 @@ if(CMAKE_SOURCE_DIR STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
install(FILES asio_compatibility.hpp server_http.hpp client_http.hpp server_https.hpp client_https.hpp crypto.hpp utility.hpp status_code.hpp mutex.hpp DESTINATION include/simple-web-server)
endif()
if(BUILD_TESTING)
enable_testing()
if(BUILD_TESTING OR BUILD_FUZZING)
if(BUILD_TESTING)
enable_testing()
endif()
add_subdirectory(tests)
endif()