aboutsummaryrefslogtreecommitdiffstats
path: root/common/rdr/CMakeLists.txt
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2011-01-19 14:20:34 +0000
committerAdam Tkac <atkac@redhat.com>2011-01-19 14:20:34 +0000
commit125bd259b9eda1270f2fb85b0caded5b8780fe37 (patch)
tree582c530527dd6d6fdf86abdf6d35e812fc4f021f /common/rdr/CMakeLists.txt
parent179d2b14ecf33058c1bc733cfef5854744809fcc (diff)
downloadtigervnc-125bd259b9eda1270f2fb85b0caded5b8780fe37.tar.gz
tigervnc-125bd259b9eda1270f2fb85b0caded5b8780fe37.zip
[Development] Add possibility to build Windows programs with GNUTLS via cmake.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4241 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rdr/CMakeLists.txt')
-rw-r--r--common/rdr/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/rdr/CMakeLists.txt b/common/rdr/CMakeLists.txt
index 2872fd71..8be9679e 100644
--- a/common/rdr/CMakeLists.txt
+++ b/common/rdr/CMakeLists.txt
@@ -14,4 +14,9 @@ add_library(rdr STATIC
ZlibInStream.cxx
ZlibOutStream.cxx)
-target_link_libraries(rdr zlib os)
+set(RDR_LIBRARIES zlib os)
+if(GNUTLS_FOUND)
+ set(RDR_LIBRARIES ${RDR_LIBRARIES} ${GNUTLS_LIBRARIES})
+endif()
+
+target_link_libraries(rdr ${RDR_LIBRARIES})