From e02a6e0225adb88b3eef91c479b9a50065fcdd5e Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 28 Mar 2009 21:56:28 +0000 Subject: Add WITH_SERVER option. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@293 7dcaeef0-15fb-0310-b436-a5af3365683c --- include/libssh/CMakeLists.txt | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'include/libssh/CMakeLists.txt') 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) + -- cgit v1.2.3