tests/benchmarks/CMakeLists.txt
raw| 1 | project(libssh-benchmarks C) |
| 2 | |
| 3 | set(benchmarks_SRCS |
| 4 | bench_scp.c bench_raw.c benchmarks.c latency.c |
| 5 | ) |
| 6 | if (WITH_SFTP) |
| 7 | set(benchmarks_SRCS |
| 8 | ${benchmarks_SRCS} |
| 9 | bench_sftp.c |
| 10 | ) |
| 11 | endif (WITH_SFTP) |
| 12 | |
| 13 | include_directories(${libssh_BINARY_DIR}) |
| 14 | |
| 15 | add_executable(benchmarks ${benchmarks_SRCS}) |
| 16 | |
| 17 | target_link_libraries(benchmarks ssh::static pthread) |