CMakeLists.txt 2.61 KB
Newer Older
1
2
include (MacroLogFeature)

3
set(LIBSPECTRE_MINIMUM_VERSION "0.2")
4

5
macro_optional_find_package(Poppler)
6
macro_log_feature(POPPLER_FOUND "Poppler-Qt4" "A PDF rendering library" "http://poppler.freedesktop.org" FALSE "0.8" "Support for PDF files in okular.")
7

8
9
macro_optional_find_package(LibSpectre)
macro_log_feature(LIBSPECTRE_FOUND "libspectre" "A PostScript rendering library" "http://libspectre.freedesktop.org/wiki/" FALSE "${LIBSPECTRE_MINIMUM_VERSION}" "Support for PS files in okular.")
10

11
macro_optional_find_package(CHM)
12
13
macro_log_feature(CHM_FOUND "CHM" "A library for dealing with Microsoft ITSS/CHM format files" "http://www.jedrea.com/chmlib" FALSE "" "Support CHM files in okular.")

14
macro_optional_find_package(DjVuLibre)
15
16
macro_log_feature(DJVULIBRE_FOUND "DjVuLibre" "A library for dealing with DjVu formatted files" "http://djvulibre.djvuzone.org" FALSE "3.5.17" "Support for DjVu files in okular.")

17
macro_optional_find_package(TIFF)
18
19
macro_log_feature(TIFF_FOUND "libTIFF" "A library for reading and writing TIFF formatted files," "http://www.remotesensing.org/libtiff" FALSE "" "Support for TIFF files in okular.")

20
macro_optional_find_package(Freetype)
21
22
macro_log_feature(FREETYPE_FOUND "FreeType" "A font rendering engine" "http://www.freetype.org" FALSE "" "Provides freetype font support in the okular DVI generator.")

23
24
macro_optional_find_package(JPEG)
macro_log_feature(JPEG_FOUND "JPEG" "A library for reading and writing JPEG image files." "http://www.ijg.org" FALSE "" "Support fof PalmDB documents in okular.")
25
macro_optional_find_package(ZLIB)
26
macro_log_feature(ZLIB_FOUND "ZLib" "The Zlib compression library" "http://www.zlib.net" FALSE "" "Support for Plucker files in Okular.")
27

28
29
30
macro_optional_find_package(EPub)
macro_log_feature(EPUB_FOUND "libepub" "A library for reading EPub documents" "http://sourceforge.net/projects/ebook-tools" FALSE "" "Support for EPub documents in Okular.")

31
32
# let's enable the generators properly configured

33
if(POPPLER_FOUND AND HAVE_POPPLER_0_8)
34
  add_subdirectory(poppler)
35
endif(POPPLER_FOUND AND HAVE_POPPLER_0_8)
36

37
if(LIBSPECTRE_FOUND)
38
  add_subdirectory(spectre)
39
endif(LIBSPECTRE_FOUND)
40

Pino Toscano's avatar
Pino Toscano committed
41
add_subdirectory( kimgio )
42

43
44
45
if(CHM_FOUND)
  add_subdirectory( chm )
endif(CHM_FOUND)
46

Pino Toscano's avatar
Pino Toscano committed
47
48
49
if(DJVULIBRE_FOUND)
  add_subdirectory(djvu)
endif(DJVULIBRE_FOUND)
50

Pino Toscano's avatar
Pino Toscano committed
51
add_subdirectory(dvi)
52

Pino Toscano's avatar
Pino Toscano committed
53
54
55
if(TIFF_FOUND)
  add_subdirectory(tiff)
endif(TIFF_FOUND)
56

57
add_subdirectory(xps)
58

59
60
add_subdirectory(ooo)

61
add_subdirectory(fictionbook)
62
63

add_subdirectory(comicbook)
64

65
66
add_subdirectory(fax)

67
if(JPEG_FOUND AND ZLIB_FOUND)
68
  add_subdirectory(plucker)
69
endif(JPEG_FOUND AND ZLIB_FOUND)
70
71
72
73

if(EPUB_FOUND)
  add_subdirectory(epub)
endif(EPUB_FOUND)
74