diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-04-27 10:58:29 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-04-27 10:58:29 +0000 |
commit | c1c4f299ff8881fe0c8d51790d49bfb5fcd632df (patch) | |
tree | b6d448bb156f7d4025778e5f76740ab7edb30dac /include/libssh | |
parent | 99946c7bcc3be1a48e2546254e3c7e9ca8375412 (diff) | |
download | libssh-c1c4f299ff8881fe0c8d51790d49bfb5fcd632df.tar.gz libssh-c1c4f299ff8881fe0c8d51790d49bfb5fcd632df.tar.xz libssh-c1c4f299ff8881fe0c8d51790d49bfb5fcd632df.zip |
Add option to build with or without sftp support.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@618 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'include/libssh')
-rw-r--r-- | include/libssh/CMakeLists.txt | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/include/libssh/CMakeLists.txt b/include/libssh/CMakeLists.txt index af7b2ebb..2b9fac6f 100644 --- a/include/libssh/CMakeLists.txt +++ b/include/libssh/CMakeLists.txt @@ -3,11 +3,23 @@ project(libssh-headers C) set(libssh_HDRS libssh.h crypto.h - sftp.h - ssh1.h ssh2.h ) +if (WITH_SFTP) + set(libssh_HDRS + ${libssh_HDRS} + sftp.h + ) +endif (WITH_SFTP) + +if (WITH_SSH1) + set(libssh_HDRS + ${libssh_HDRS} + ssh1.h + ) +endif (WITH_SSH1) + if (WITH_SERVER) set(libssh_HDRS ${libssh_HDRS} |