okular/generators/CMakeLists.txt
Sune Vuorela dc88b5873a Don't put slashes in plugin prefix
It complicates stuff further down the line and we don't gain much for
it, so work with the rest of the stack rather than work around it.

One of the complications is that if bindir contains both plugins and executable, we will have okular and okular/ in the same folder and that doesn't really work.
2024-01-09 14:12:45 +00:00

63 lines
1.1 KiB
CMake

function(okular_add_generator _target)
kcoreaddons_add_plugin(${_target}
INSTALL_NAMESPACE "okular_generators"
SOURCES ${ARGN}
)
get_property(aux_list GLOBAL PROPERTY okular_generator_list)
list(APPEND aux_list ${_target})
set_property(GLOBAL PROPERTY okular_generator_list ${aux_list})
endfunction()
# let's enable the generators properly configured
if(Poppler_Qt6_FOUND)
add_subdirectory(poppler)
endif(Poppler_Qt6_FOUND)
if(LIBSPECTRE_FOUND)
add_subdirectory(spectre)
endif(LIBSPECTRE_FOUND)
add_subdirectory( kimgio )
if(FALSE)
add_subdirectory( chm )
endif()
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(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(QMobipocket6_FOUND)
add_subdirectory(mobipocket)
endif()
if(Discount_FOUND)
add_subdirectory(markdown)
endif()