SVN_SILENT made messages (.desktop file)
[kdegraphics.git] / okular / generators / CMakeLists.txt
blob6ec0edc6774f36ff26ec19669f7b975588474ee1
1 include (MacroLogFeature)
3 set(LIBSPECTRE_MINIMUM_VERSION "0.2")
5 macro_optional_find_package(Poppler)
6 macro_log_feature(POPPLER_FOUND "Poppler-Qt4" "A PDF rendering library" "http://poppler.freedesktop.org" FALSE "0.6" "Support for PDF files in okular.")
8 macro_optional_find_package(LibSpectre)
9 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.")
11 macro_optional_find_package(CHM)
12 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 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 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 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 #we look for JPEG in kdegraphics/CMakeLists.txt
24 #macro_optional_find_package(JPEG)
25 #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.")
26 macro_optional_find_package(ZLIB)
27 macro_log_feature(ZLIB_FOUND "zlib" "The zlib library" "http://www.zlib.net" FALSE "" "Support for Plucker files in Okular.")
29 macro_optional_find_package(EPub)
30 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.")
32 # let's enable the generators properly configured
34 if(POPPLER_FOUND AND HAVE_POPPLER_0_6)
35   add_subdirectory(poppler)
36 endif(POPPLER_FOUND AND HAVE_POPPLER_0_6)
38 if(LIBSPECTRE_FOUND)
39   add_subdirectory(spectre)
40 endif(LIBSPECTRE_FOUND)
42 add_subdirectory( kimgio )
44 if(CHM_FOUND)
45   add_subdirectory( chm )
46 endif(CHM_FOUND)
48 if(DJVULIBRE_FOUND)
49   add_subdirectory(djvu)
50 endif(DJVULIBRE_FOUND)
52 add_subdirectory(dvi)
54 if(TIFF_FOUND)
55   add_subdirectory(tiff)
56 endif(TIFF_FOUND)
58 add_subdirectory(xps)
60 add_subdirectory(ooo)
62 add_subdirectory(fictionbook)
64 add_subdirectory(comicbook)
66 add_subdirectory(fax)
68 if(JPEG_FOUND AND ZLIB_FOUND)
69   add_subdirectory(plucker)
70 endif(JPEG_FOUND AND ZLIB_FOUND)
72 if(EPUB_FOUND)
73   add_subdirectory(epub)
74 endif(EPUB_FOUND)
76 add_subdirectory(mobipocket)