diff options
author | Christian Beier <[email protected]> | 2012-04-26 20:18:57 +0200 |
---|---|---|
committer | Christian Beier <[email protected]> | 2012-04-26 20:18:57 +0200 |
commit | 98125f9d4ce46947830fad5ebb476207a8310d70 (patch) | |
tree | 54a27cec238cb56db9442f80183591df11f019f3 /CMakeLists.txt | |
parent | 81289eb624cf93f5b810f3371c2dccd50e0339d5 (diff) | |
download | libtdevnc-98125f9d4ce46947830fad5ebb476207a8310d70.tar.gz libtdevnc-98125f9d4ce46947830fad5ebb476207a8310d70.zip |
Fix CMake build of LibVNCClient.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b291a3..6d4a5f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -185,9 +185,25 @@ set(LIBVNCCLIENT_SOURCES ${LIBVNCCLIENT_DIR}/sockets.c ${LIBVNCCLIENT_DIR}/vncviewer.c ${COMMON_DIR}/minilzo.c - ${LIBVNCCLIENT_DIR}/tls.c ) +if(GNUTLS_FOUND) + set(LIBVNCCLIENT_SOURCES + ${LIBVNCCLIENT_SOURCES} + ${LIBVNCCLIENT_DIR}/tls_gnutls.c + ) +elseif(OPENSSL_FOUND) + set(LIBVNCCLIENT_SOURCES + ${LIBVNCCLIENT_SOURCES} + ${LIBVNCCLIENT_DIR}/tls_openssl.c + ) +else() + set(LIBVNCCLIENT_SOURCES + ${LIBVNCCLIENT_SOURCES} + ${LIBVNCCLIENT_DIR}/tls_none.c + ) +endif() + if(ZLIB_FOUND) add_definitions(-DLIBVNCSERVER_HAVE_LIBZ) include_directories(${ZLIB_INCLUDE_DIR}) |