mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-12 03:00:26 +09:00
cmake: Search for cwrap and sshd.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -44,6 +44,18 @@ set(TEST_TARGET_LIBRARIES
|
|||||||
add_subdirectory(unittests)
|
add_subdirectory(unittests)
|
||||||
|
|
||||||
if (WITH_CLIENT_TESTING)
|
if (WITH_CLIENT_TESTING)
|
||||||
|
find_package(socket_wrapper 1.1.5 REQUIRED)
|
||||||
|
find_package(nss_wrapper 1.1.2 REQUIRED)
|
||||||
|
find_program(SSHD_EXECUTABLE
|
||||||
|
NAME
|
||||||
|
sshd
|
||||||
|
PATHS
|
||||||
|
/sbin
|
||||||
|
/usr/sbin
|
||||||
|
/usr/local/sbin)
|
||||||
|
if (NOT SSHD_EXECUTABLE)
|
||||||
|
message(SEND_ERROR "Could not find sshd which is required for client testing")
|
||||||
|
endif()
|
||||||
add_subdirectory(client)
|
add_subdirectory(client)
|
||||||
endif (WITH_CLIENT_TESTING)
|
endif (WITH_CLIENT_TESTING)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user