From 6b60690a4a1642c77bd6ac42789c4da6ed770075 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Sat, 12 Mar 2011 23:17:46 +0100 Subject: CMake: Check for libgcrypt availability. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CMakeLists.txt') 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) -- cgit v1.2.1