2015-11-28 19:24:41 +00:00
|
|
|
|
|
|
|
function(okular_add_generator _target)
|
|
|
|
kcoreaddons_add_plugin(${_target}
|
|
|
|
INSTALL_NAMESPACE "okular/generators"
|
|
|
|
SOURCES ${ARGN}
|
|
|
|
)
|
2020-04-07 22:36:08 +00:00
|
|
|
set_target_properties(${_target} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/plugins/okular")
|
2022-03-25 13:28:10 +00:00
|
|
|
get_property(aux_list GLOBAL PROPERTY okular_generator_list)
|
|
|
|
list(APPEND aux_list ${_target})
|
|
|
|
set_property(GLOBAL PROPERTY okular_generator_list ${aux_list})
|
2015-11-28 19:24:41 +00:00
|
|
|
endfunction()
|
2007-12-11 20:40:37 +00:00
|
|
|
|
2006-03-27 21:09:36 +00:00
|
|
|
# let's enable the generators properly configured
|
|
|
|
|
2016-03-08 18:54:21 +00:00
|
|
|
if(Poppler_Qt5_FOUND)
|
2014-08-13 09:16:28 +00:00
|
|
|
add_subdirectory(poppler)
|
2016-03-08 18:54:21 +00:00
|
|
|
endif(Poppler_Qt5_FOUND)
|
2006-09-11 10:44:17 +00:00
|
|
|
|
2014-10-05 05:39:08 +00:00
|
|
|
if(LIBSPECTRE_FOUND)
|
|
|
|
add_subdirectory(spectre)
|
|
|
|
endif(LIBSPECTRE_FOUND)
|
2006-09-11 10:44:17 +00:00
|
|
|
|
2021-11-24 16:55:23 +00:00
|
|
|
add_subdirectory( kimgio )
|
2006-09-11 10:44:17 +00:00
|
|
|
|
2017-09-11 19:25:55 +00:00
|
|
|
if(CHM_FOUND AND KF5KHtml_FOUND AND LIBZIP_FOUND)
|
2014-08-13 09:24:15 +00:00
|
|
|
add_subdirectory( chm )
|
2017-04-06 20:14:01 +00:00
|
|
|
endif()
|
2006-09-11 10:44:17 +00:00
|
|
|
|
2014-10-04 12:22:14 +00:00
|
|
|
if(DJVULIBRE_FOUND)
|
|
|
|
add_subdirectory(djvu)
|
|
|
|
endif(DJVULIBRE_FOUND)
|
2006-09-11 10:44:17 +00:00
|
|
|
|
2014-08-24 20:52:23 +00:00
|
|
|
add_subdirectory(dvi)
|
2006-09-11 10:44:17 +00:00
|
|
|
|
2014-08-24 20:52:23 +00:00
|
|
|
if(TIFF_FOUND)
|
|
|
|
add_subdirectory(tiff)
|
|
|
|
endif(TIFF_FOUND)
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2014-08-24 20:52:23 +00:00
|
|
|
add_subdirectory(xps)
|
2006-09-11 10:44:17 +00:00
|
|
|
|
2014-10-02 11:43:03 +00:00
|
|
|
add_subdirectory(fictionbook)
|
2007-01-17 18:49:05 +00:00
|
|
|
|
2014-08-13 09:29:03 +00:00
|
|
|
add_subdirectory(comicbook)
|
2007-03-10 13:15:49 +00:00
|
|
|
|
2014-10-07 11:18:22 +00:00
|
|
|
add_subdirectory(fax)
|
2008-09-19 09:21:20 +00:00
|
|
|
|
2014-10-07 11:18:22 +00:00
|
|
|
if(JPEG_FOUND AND ZLIB_FOUND)
|
|
|
|
add_subdirectory(plucker)
|
|
|
|
endif(JPEG_FOUND AND ZLIB_FOUND)
|
2008-04-02 20:51:31 +00:00
|
|
|
|
2014-08-13 09:42:09 +00:00
|
|
|
if(EPUB_FOUND)
|
|
|
|
add_subdirectory(epub)
|
|
|
|
endif(EPUB_FOUND)
|
2009-02-19 16:17:58 +00:00
|
|
|
|
2014-08-13 19:09:19 +00:00
|
|
|
add_subdirectory(txt)
|
2013-02-18 23:22:16 +00:00
|
|
|
|
2016-10-29 15:51:18 +00:00
|
|
|
if(QMobipocket_FOUND)
|
2016-06-18 17:34:55 +00:00
|
|
|
add_subdirectory(mobipocket)
|
|
|
|
endif()
|
2017-08-24 23:04:54 +00:00
|
|
|
|
2021-01-08 23:21:30 +00:00
|
|
|
if(Discount_FOUND)
|
2017-08-24 23:04:54 +00:00
|
|
|
add_subdirectory(markdown)
|
|
|
|
endif()
|