Files
libssh/tests/benchmarks/CMakeLists.txt
Jakub Jelen e5a6dc6757 Allow building benchmarks without SFTP
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
2023-06-06 10:54:31 +02:00

18 lines
334 B
CMake

project(libssh-benchmarks C)
set(benchmarks_SRCS
bench_scp.c bench_raw.c benchmarks.c latency.c
)
if (WITH_SFTP)
set(benchmarks_SRCS
${benchmarks_SRCS}
bench_sftp.c
)
endif (WITH_SFTP)
include_directories(${libssh_BINARY_DIR})
add_executable(benchmarks ${benchmarks_SRCS})
target_link_libraries(benchmarks ssh::ssh)