diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2014-02-16 17:59:46 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-02-16 17:59:46 +0100 |
commit | 7021a4661720245416991cb12c776252107cc1f0 (patch) | |
tree | 0ca46bc426c4b42c013cab39cce4a77d87eb0764 /examples | |
parent | c7cb2d0657b92c10e2a5201c5d2c22873c933d66 (diff) | |
download | libssh-7021a4661720245416991cb12c776252107cc1f0.tar.gz libssh-7021a4661720245416991cb12c776252107cc1f0.tar.xz libssh-7021a4661720245416991cb12c776252107cc1f0.zip |
cmake: Merge server examples.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/CMakeLists.txt | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 5e6d1bfc..4998f041 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -25,13 +25,6 @@ if (UNIX AND NOT WIN32) add_executable(sshnetcat sshnetcat.c ${examples_SRCS}) target_link_libraries(sshnetcat ${LIBSSH_SHARED_LIBRARY}) - if (WITH_SERVER) - if (HAVE_LIBUTIL) - add_executable(ssh_server_fork ssh_server_fork.c) - target_link_libraries(ssh_server_fork ${LIBSSH_SHARED_LIBRARY} ${ARGP_LIBRARIES} util) - endif (HAVE_LIBUTIL) - endif (WITH_SERVER) - if (WITH_SFTP) add_executable(samplesftp samplesftp.c ${examples_SRCS}) target_link_libraries(samplesftp ${LIBSSH_SHARED_LIBRARY}) @@ -41,6 +34,11 @@ if (UNIX AND NOT WIN32) target_link_libraries(samplessh ${LIBSSH_SHARED_LIBRARY}) if (WITH_SERVER) + if (HAVE_LIBUTIL) + add_executable(ssh_server_fork ssh_server_fork.c) + target_link_libraries(ssh_server_fork ${LIBSSH_SHARED_LIBRARY} ${ARGP_LIBRARIES} util) + endif (HAVE_LIBUTIL) + if (WITH_GSSAPI AND GSSAPI_FOUND) add_executable(samplesshd-cb samplesshd-cb.c) target_link_libraries(samplesshd-cb ${LIBSSH_SHARED_LIBRARY} ${ARGP_LIBRARIES}) |