
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
14 строки
476 B
CMake
14 строки
476 B
CMake
project(fuzzing CXX)
|
|
|
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
|
add_executable(ssh_server_fuzzer ssh_server_fuzzer.cpp)
|
|
target_link_libraries(ssh_server_fuzzer
|
|
PRIVATE
|
|
${LIBSSH_STATIC_LIBRARY}
|
|
${LIBSSH_LINK_LIBRARIES})
|
|
set_target_properties(ssh_server_fuzzer
|
|
PROPERTIES
|
|
COMPILE_FLAGS "-fsanitize=fuzzer"
|
|
LINK_FLAGS "-fsanitize=fuzzer")
|
|
endif()
|