aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/CMakeLists.txt
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/CMakeLists.txt
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/CMakeLists.txt')
-rw-r--r--include/libssh/CMakeLists.txt20
1 files changed, 17 insertions, 3 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)
+