summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2011-03-12 23:17:46 +0100
committerChristian Beier <dontmind@freeshell.org>2011-03-12 23:17:46 +0100
commit6b60690a4a1642c77bd6ac42789c4da6ed770075 (patch)
tree8e41546d72230a12eedd96c8b5c29dfc18a6914c /CMakeLists.txt
parent887921373489576e812f48053ae5a7aefa661a28 (diff)
downloadlibtdevnc-6b60690a4a1642c77bd6ac42789c4da6ed770075.tar.gz
libtdevnc-6b60690a4a1642c77bd6ac42789c4da6ed770075.zip
CMake: Check for libgcrypt availability.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 37b8e4c..a5425cc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,6 +19,7 @@ find_package(SDL)
find_package(GnuTLS)
find_package(Threads)
find_package(X11)
+find_library(LIBGCRYPT_LIBRARIES gcrypt)
if(Threads_FOUND)
option(TIGHTVNC_FILETRANSFER "Enable filetransfer" ON)
@@ -33,6 +34,11 @@ option(LIBVNCSERVER_ALLOW24BPP "Allow 24 bpp" ON)
if(GNUTLS_FOUND)
set(LIBVNCSERVER_WITH_CLIENT_TLS 1)
endif(GNUTLS_FOUND)
+if(LIBGCRYPT_LIBRARIES)
+ message(STATUS "Found libgcrypt: ${LIBGCRYPT_LIBRARIES}")
+ set(LIBVNCSERVER_WITH_CLIENT_GCRYPT 1)
+endif(LIBGCRYPT_LIBRARIES)
+
check_include_file("fcntl.h" LIBVNCSERVER_HAVE_FCNTL_H)
check_include_file("netinet/in.h" LIBVNCSERVER_HAVE_NETINET_IN_H)