summaryrefslogtreecommitdiff
path: root/tests/fuzz/CMakeLists.txt
blob: a12e4c6c7c8cfc72242ee35c074c8659e145493c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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})
    set_target_properties(ssh_server_fuzzer
        PROPERTIES
            COMPILE_FLAGS "-fsanitize=fuzzer"
            LINK_FLAGS "-fsanitize=fuzzer")
endif()