okular/generators/CMakeLists.txt
Fabio D'Urso e395735820 Port the kimgio generator
Note that the libkexiv2 "framework" branch is still work in progress and does
not work out of the box yet (it doesn't install some headers).
2014-08-23 21:49:25 +02:00

132 lines
3.7 KiB
CMake

set(LIBSPECTRE_MINIMUM_VERSION "0.2")
find_package(Poppler "0.12.1")
set_package_properties("Poppler-Qt5" PROPERTIES
DESCRIPTION "A PDF rendering library"
URL "http://poppler.freedesktop.org"
TYPE RECOMMENDED
PURPOSE "Support for PDF files in okular.")
find_package(LibSpectre "${LIBSPECTRE_MINIMUM_VERSION}")
set_package_properties("libspectre" PROPERTIES
DESCRIPTION "A PostScript rendering library"
URL "http://libspectre.freedesktop.org/wiki/"
TYPE RECOMMENDED
PURPOSE "Support for PS files in okular.")
find_package(KF5KExiv2)
set_package_properties("LibKExiv2" PROPERTIES
DESCRIPTION "Wrapper around Exiv2 library"
URL "http://www.digikam.org/sharedlibs"
TYPE RECOMMENDED
PURPOSE "Support for image files")
find_package(CHM)
set_package_properties("CHM" PROPERTIES
DESCRIPTION "A library for dealing with Microsoft ITSS/CHM format files"
URL "http://www.jedrea.com/chmlib"
TYPE RECOMMENDED
PURPOSE "Support CHM files in okular.")
find_package(DjVuLibre "3.5.17")
set_package_properties("DjVuLibre" PROPERTIES
DESCRIPTION "A library for dealing with DjVu formatted files"
URL "http://djvulibre.djvuzone.org"
TYPE RECOMMENDED
PURPOSE "Support for DjVu files in okular.")
find_package(TIFF)
set_package_properties("libTIFF" PROPERTIES
DESCRIPTION "A library for reading and writing TIFF formatted files,"
URL "http://www.remotesensing.org/libtiff"
TYPE RECOMMENDED
PURPOSE "Support for TIFF files in okular.")
find_package(Freetype)
set_package_properties("FreeType" PROPERTIES
DESCRIPTION "A font rendering engine"
URL "http://www.freetype.org"
TYPE RECOMMENDED
PURPOSE "Provides freetype font support in the okular DVI generator.")
find_package(JPEG)
set_package_properties("JPEG" PROPERTIES
DESCRIPTION "A library for reading and writing JPEG image files."
URL "http://www.ijg.org"
TYPE RECOMMENDED
PURPOSE "Support fof PalmDB documents in okular.")
find_package(ZLIB)
set_package_properties("ZLib" PROPERTIES
DESCRIPTION "The Zlib compression library"
URL "http://www.zlib.net"
TYPE RECOMMENDED
PURPOSE "Support for Plucker files in Okular.")
find_package(EPub)
set_package_properties("libepub" PROPERTIES
DESCRIPTION "A library for reading EPub documents"
URL "http://sourceforge.net/projects/ebook-tools"
TYPE RECOMMENDED
PURPOSE "Support for EPub documents in Okular.")
find_package(QMobipocket)
set_package_properties("libqmobipocket" PROPERTIES
DESCRIPTION "A library for reading Mobipocket documents"
URL "https://projects.kde.org/projects/kde/kdegraphics/kdegraphics-mobipocket"
TYPE RECOMMENDED
PURPOSE "Support for Mobipocket documents in Okular.")
# let's enable the generators properly configured
message("KF5 enable generators")
if(POPPLER_FOUND)
add_subdirectory(poppler)
endif(POPPLER_FOUND)
#if(LIBSPECTRE_FOUND)
# add_subdirectory(spectre)
#endif(LIBSPECTRE_FOUND)
if(KF5KExiv2_FOUND)
add_subdirectory( kimgio )
endif(KF5KExiv2_FOUND)
if(CHM_FOUND)
add_subdirectory( chm )
endif(CHM_FOUND)
#if(DJVULIBRE_FOUND)
# add_subdirectory(djvu)
#endif(DJVULIBRE_FOUND)
#add_subdirectory(dvi)
#if(TIFF_FOUND)
# add_subdirectory(tiff)
#endif(TIFF_FOUND)
#add_subdirectory(xps)
#add_subdirectory(ooo)
#add_subdirectory(fictionbook)
add_subdirectory(comicbook)
#add_subdirectory(fax)
#if(JPEG_FOUND AND ZLIB_FOUND)
# add_subdirectory(plucker)
#endif(JPEG_FOUND AND ZLIB_FOUND)
if(EPUB_FOUND)
add_subdirectory(epub)
endif(EPUB_FOUND)
add_subdirectory(txt)
#if(QMOBIPOCKET_FOUND)
# add_subdirectory(mobipocket)
#endif()