summaryrefslogtreecommitdiff
blob: dc8aa68b44006f2f59ec04649bbd4b41c1c67e76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff -r -u basket-1.80-vanilla/CMakeLists.txt basket-1.80/CMakeLists.txt
--- basket-1.80-vanilla/CMakeLists.txt	2010-03-20 21:20:57.000000000 +0100
+++ basket-1.80/CMakeLists.txt	2010-03-28 22:04:43.000000000 +0200
@@ -1,5 +1,7 @@
 cmake_minimum_required(VERSION 2.4)
 
+OPTION(ENABLE_CRYPT "build encryption support" ON)
+
 find_package(KDE4 REQUIRED)
 find_package(QImageBlitz REQUIRED)
 find_package(Gpgme)
@@ -15,13 +17,14 @@
 
 include(MacroLibrary)
 
-IF(GPGME_FOUND)
+IF(GPGME_FOUND AND ENABLE_CRYPT)
   SET(HAVE_LIBGPGME 1)
   SET(LARGEFILE_SOURCE_1)
   ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64)
-ELSE(GPGME_FOUND)
-  MESSAGE("GPG not found, configuring without")
-ENDIF(GPGME_FOUND)
+  MESSAGE("Configuring with GPG support")
+ELSE(GPGME_FOUND AND ENABLE_CRYPT)
+  MESSAGE("Configuring without GPG support")
+ENDIF(GPGME_FOUND AND ENABLE_CRYPT)
 
 #TODO: find meinproc