summaryrefslogtreecommitdiffstats
path: root/include/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-03-28 21:56:28 +0000
committerAndreas Schneider <mail@cynapses.org>2009-03-28 21:56:28 +0000
commite02a6e0225adb88b3eef91c479b9a50065fcdd5e (patch)
tree600ba6eef014f11ec448666afdffce55b9ae1501 /include/libssh
parentfce4840c779045b50dc8cc45fdfee4e6ee859248 (diff)
downloadlibssh-e02a6e0225adb88b3eef91c479b9a50065fcdd5e.tar.gz
libssh-e02a6e0225adb88b3eef91c479b9a50065fcdd5e.tar.xz
libssh-e02a6e0225adb88b3eef91c479b9a50065fcdd5e.zip
Add WITH_SERVER option.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@293 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/CMakeLists.txt20
-rw-r--r--include/libssh/sftp.h4
2 files changed, 19 insertions, 5 deletions
diff --git a/include/libssh/CMakeLists.txt b/include/libssh/CMakeLists.txt
index bfbebdd8..dc67ab96 100644
--- a/include/libssh/CMakeLists.txt
+++ b/include/libssh/CMakeLists.txt
@@ -3,18 +3,32 @@ project(libssh-headers C)
set(libssh_HDRS
libssh.h
crypto.h
- server.h
sftp.h
ssh1.h
ssh2.h
)
-INSTALL(
+install(
FILES
${libssh_HDRS}
DESTINATION
${INCLUDE_INSTALL_DIR}/${APPLICATION_NAME}
COMPONENT
- libraries
+ headers
)
+if (WITH_SERVER)
+ set(server_HDRS
+ server.h
+ )
+
+ install(
+ FILES
+ ${server_HDRS}
+ DESTINATION
+ ${INCLUDE_INSTALL_DIR}/${APPLICATION_NAME}
+ COMPONENT
+ libraries
+ )
+endif (WITH_SERVER)
+
diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h
index 729f0ec9..ca549e35 100644
--- a/include/libssh/sftp.h
+++ b/include/libssh/sftp.h
@@ -607,7 +607,7 @@ char *sftp_canonicalize_path(SFTP_SESSION *sftp, const char *path);
*/
int sftp_server_version(SFTP_SESSION *sftp);
-#ifndef NO_SERVER
+#ifdef WITH_SERVER
/**
* @brief Create a new sftp server session.
*
@@ -627,7 +627,7 @@ SFTP_SESSION *sftp_server_new(SSH_SESSION *session, CHANNEL *chan);
* @return 0 on success, < 0 on error.
*/
int sftp_server_init(SFTP_SESSION *sftp);
-#endif
+#endif /* WITH_SERVER */
/* this is not a public interface */
#define SFTP_HANDLES 256