okular/generators/CMakeLists.txt

143 lines
4 KiB
CMake
Raw Normal View History

function(okular_add_generator _target)
kcoreaddons_add_plugin(${_target}
JSON "lib${_target}.json"
INSTALL_NAMESPACE "okular/generators"
SOURCES ${ARGN}
)
endfunction()
find_package(Poppler "0.12.1" COMPONENTS Qt5)
set_package_properties("Poppler" PROPERTIES
2014-08-06 20:51:03 +00:00
TYPE RECOMMENDED
PURPOSE "Support for PDF files in okular.")
set(LIBSPECTRE_MINIMUM_VERSION "0.2")
2014-08-06 20:51:03 +00:00
find_package(LibSpectre "${LIBSPECTRE_MINIMUM_VERSION}")
2016-10-29 16:15:00 +00:00
set_package_properties(LibSpectre PROPERTIES
2014-08-06 20:51:03 +00:00
DESCRIPTION "A PostScript rendering library"
URL "http://libspectre.freedesktop.org/wiki/"
TYPE RECOMMENDED
PURPOSE "Support for PS files in okular.")
find_package(KF5KExiv2)
2014-08-06 20:51:03 +00:00
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(KF5KHtml)
set_package_properties("KF5KHtml" PROPERTIES
DESCRIPTION "HTML rendering library"
TYPE RECOMMENDED
PURPOSE "Support CHM files in okular.")
2014-08-06 20:51:03 +00:00
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
2017-04-22 10:49:25 +00:00
PURPOSE "Support for PalmDB documents in okular.")
2014-08-06 20:51:03 +00:00
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 "2")
2014-08-06 20:51:03 +00:00
set_package_properties("libqmobipocket" PROPERTIES
DESCRIPTION "A library for reading Mobipocket documents"
URL "https://commits.kde.org/kdegraphics-mobipocket"
2014-08-06 20:51:03 +00:00
TYPE RECOMMENDED
PURPOSE "Support for Mobipocket documents in Okular.")
2013-11-04 20:38:52 +00:00
# let's enable the generators properly configured
if(Poppler_Qt5_FOUND)
2014-08-13 09:16:28 +00:00
add_subdirectory(poppler)
endif(Poppler_Qt5_FOUND)
2014-10-05 05:39:08 +00:00
if(LIBSPECTRE_FOUND)
add_subdirectory(spectre)
endif(LIBSPECTRE_FOUND)
if(KF5KExiv2_FOUND)
add_subdirectory( kimgio )
endif()
if(CHM_FOUND AND KF5KHtml_FOUND)
add_subdirectory( chm )
endif()
2014-10-04 12:22:14 +00:00
if(DJVULIBRE_FOUND)
add_subdirectory(djvu)
endif(DJVULIBRE_FOUND)
2014-08-24 20:52:23 +00:00
add_subdirectory(dvi)
2014-08-24 20:52:23 +00:00
if(TIFF_FOUND)
add_subdirectory(tiff)
endif(TIFF_FOUND)
2014-08-24 20:52:23 +00:00
add_subdirectory(xps)
2014-10-02 11:43:03 +00:00
add_subdirectory(ooo)
2014-10-02 11:43:03 +00:00
add_subdirectory(fictionbook)
2014-08-13 09:29:03 +00:00
add_subdirectory(comicbook)
2014-10-07 11:18:22 +00:00
add_subdirectory(fax)
2014-10-07 11:18:22 +00:00
if(JPEG_FOUND AND ZLIB_FOUND)
add_subdirectory(plucker)
endif(JPEG_FOUND AND ZLIB_FOUND)
2014-08-13 09:42:09 +00:00
if(EPUB_FOUND)
add_subdirectory(epub)
endif(EPUB_FOUND)
2014-08-13 19:09:19 +00:00
add_subdirectory(txt)
if(QMobipocket_FOUND)
2016-06-18 17:34:55 +00:00
add_subdirectory(mobipocket)
endif()