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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
--- CMakeLists.txt.orig 2021-01-05 16:56:54 UTC
+++ CMakeLists.txt
@@ -348,6 +348,7 @@ ELSE(LIBIDN_FOUND)
MESSAGE("Libidn not found. AES-256 Encryption support will be disabled")
ENDIF(LIBIDN_FOUND)
+IF(WANT_LIBJPEG)
FIND_PACKAGE(LIBJPEG)
IF(LIBJPEG_FOUND)
@@ -357,7 +358,9 @@ IF(LIBJPEG_FOUND)
ELSE(LIBJPEG_FOUND)
MESSAGE("Libjpeg not found. JPEG support will be disabled")
ENDIF(LIBJPEG_FOUND)
+ENDIF(WANT_LIBJPEG)
+IF(WANT_TIFF)
FIND_PACKAGE(TIFF)
IF(TIFF_FOUND)
@@ -367,7 +370,9 @@ IF(TIFF_FOUND)
ELSE(TIFF_FOUND)
MESSAGE("Libtiff not found. TIFF support will be disabled")
ENDIF(TIFF_FOUND)
+ENDIF(WANT_TIFF)
+IF(WANT_PNG)
FIND_PACKAGE(PNG)
IF(PNG_FOUND)
@@ -378,6 +383,7 @@ ELSE(PNG_FOUND)
MESSAGE("LibPng not found. PNG support will be disabled")
SET(PNG_LIBRARIES "")
ENDIF(PNG_FOUND)
+ENDIF(WANT_PNG)
FIND_PACKAGE(UNISTRING)
@@ -393,6 +399,7 @@ ENDIF(UNISTRING_FOUND)
IF(NOT PODOFO_BUILD_LIB_ONLY)
+IF(WANT_CppUnit)
FIND_PACKAGE(CppUnit)
IF(CppUnit_FOUND)
@@ -402,6 +409,7 @@ IF(CppUnit_FOUND)
ELSE(CppUnit_FOUND)
MESSAGE("Cppunit not found. No unit tests will be built.")
ENDIF(CppUnit_FOUND)
+ENDIF(WANT_CppUnit)
ENDIF(NOT PODOFO_BUILD_LIB_ONLY)
@@ -442,6 +450,7 @@ ELSE(WANT_FONTCONFIG)
ENDIF(WANT_FONTCONFIG)
IF(NOT PODOFO_BUILD_LIB_ONLY)
+IF(WANT_LUA)
FIND_PACKAGE(LUA)
IF(LUA_FOUND)
# If we have lua, we can build podofoimpose.
@@ -453,6 +462,7 @@ IF(LUA_FOUND)
ELSE(LUA_FOUND)
MESSAGE("Lua not found - PoDoFoImpose and PoDoFoColor will be built without Lua support")
ENDIF(LUA_FOUND)
+ENDIF(WANT_LUA)
ENDIF(NOT PODOFO_BUILD_LIB_ONLY)
|