2007-03-10 13:15:49 +00:00
|
|
|
include (MacroLogFeature)
|
|
|
|
|
|
|
|
macro_optional_find_package(Poppler)
|
|
|
|
macro_optional_find_package(CHM)
|
|
|
|
macro_optional_find_package(DjVuLibre)
|
|
|
|
macro_optional_find_package(TIFF)
|
|
|
|
macro_optional_find_package(Freetype)
|
2007-03-14 21:00:15 +00:00
|
|
|
macro_optional_find_package(JPEG)
|
2007-03-10 13:15:49 +00:00
|
|
|
|
2006-03-27 21:09:36 +00:00
|
|
|
# let's enable the generators properly configured
|
|
|
|
|
|
|
|
if(POPPLER_FOUND)
|
2006-07-25 18:19:06 +00:00
|
|
|
add_subdirectory(poppler)
|
2006-03-27 21:09:36 +00:00
|
|
|
endif(POPPLER_FOUND)
|
2006-09-11 10:44:17 +00:00
|
|
|
|
2006-05-29 20:33:55 +00:00
|
|
|
if(LIBGS_FOUND)
|
2006-03-27 21:09:36 +00:00
|
|
|
add_subdirectory(ghostview)
|
2006-05-29 20:33:55 +00:00
|
|
|
endif(LIBGS_FOUND)
|
2006-09-11 10:44:17 +00:00
|
|
|
|
2006-04-07 17:28:50 +00:00
|
|
|
add_subdirectory( kimgio )
|
2006-09-11 10:44:17 +00:00
|
|
|
|
2006-03-27 21:09:36 +00:00
|
|
|
if(CHM_FOUND)
|
|
|
|
add_subdirectory( chm )
|
|
|
|
endif(CHM_FOUND)
|
2006-09-11 10:44:17 +00:00
|
|
|
|
2006-06-07 17:41:04 +00:00
|
|
|
if(DJVULIBRE_FOUND)
|
|
|
|
add_subdirectory(djvu)
|
|
|
|
endif(DJVULIBRE_FOUND)
|
2006-09-11 10:44:17 +00:00
|
|
|
|
2006-06-27 22:17:35 +00:00
|
|
|
add_subdirectory(dvi)
|
2006-09-11 10:44:17 +00:00
|
|
|
|
2006-07-07 14:58:12 +00:00
|
|
|
if(TIFF_FOUND)
|
|
|
|
add_subdirectory(tiff)
|
|
|
|
endif(TIFF_FOUND)
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2007-03-06 10:25:42 +00:00
|
|
|
|
|
|
|
# this is a crude hack to prevent breakage while I modify the XPS code
|
|
|
|
# to use Qt4.3 streaming parsers - bradh.
|
|
|
|
find_path( QT_XMLSTREAMREADER QXmlStreamReader ${QT_QTXML_INCLUDE_DIR} )
|
|
|
|
if (${QT_XMLSTREAMREADER} STREQUAL ${QT_QTXML_INCLUDE_DIR})
|
|
|
|
add_subdirectory(xps)
|
|
|
|
endif(${QT_XMLSTREAMREADER} STREQUAL ${QT_QTXML_INCLUDE_DIR})
|
2006-09-11 10:44:17 +00:00
|
|
|
|
2006-09-13 16:18:29 +00:00
|
|
|
add_subdirectory(ooo)
|
|
|
|
|
2007-01-07 16:42:24 +00:00
|
|
|
add_subdirectory(fictionbook)
|
2007-01-17 18:49:05 +00:00
|
|
|
|
|
|
|
add_subdirectory(comicbook)
|
2007-03-10 13:15:49 +00:00
|
|
|
|
2007-03-14 21:00:15 +00:00
|
|
|
if(JPEG_FOUND)
|
|
|
|
add_subdirectory(plucker)
|
|
|
|
endif(JPEG_FOUND)
|
2007-03-13 00:00:58 +00:00
|
|
|
|
2007-03-10 13:15:49 +00:00
|
|
|
macro_log_feature(POPPLER_FOUND "Poppler-Qt4" "Support for PDF files in okular" "http://poppler.freedesktop.org" FALSE "0.5.4" "")
|
|
|
|
macro_log_feature(CHM_FOUND "libCHM" "Support for CHM files in okular" "http://morte.jedrea.com/~jedwin/projects/chmlib" FALSE "" "")
|
|
|
|
macro_log_feature(DJVULIBRE_FOUND "libdjvulibre" "Support for DjVu files in okular" "http://djvulibre.djvuzone.org" FALSE "3.5.17" "")
|
|
|
|
macro_log_feature(TIFF_FOUND "libTIFF" "Support for TIFF files in okular" "http://www.remotesensing.org/libtiff/" FALSE "" "")
|
2007-03-14 21:00:15 +00:00
|
|
|
macro_log_feature(JPEG_FOUND "JPEG" "Support for PalmDB docments in okular" "http://www.ijg.org/" FALSE "" "")
|