mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 19:50:27 +00:00
![Pino Toscano](/assets/img/avatar_default.png)
This requires a generator to have a MyGenerator(QObject *parent, const QVariantList &args) constructor in order to be successfully loaded. The OKULAR_EXPORT_PLUGIN macro was adapted, and the generators to provide it the about data; the protected Generator::setAboutData() is no more needed. Remove the 'lib' prefix from plugins, unneeded now. CCMAIL: okular-devel@kde.org svn path=/trunk/KDE/kdegraphics/okular/; revision=744169
29 lines
705 B
CMake
29 lines
705 B
CMake
include_directories(
|
|
${DJVULIBRE_INCLUDE_DIR}
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../..
|
|
${CMAKE_BINARY_DIR}/okular
|
|
)
|
|
|
|
|
|
########### next target ###############
|
|
|
|
set(okularGenerator_djvu_SRCS
|
|
generator_djvu.cpp
|
|
kdjvu.cpp
|
|
)
|
|
|
|
|
|
kde4_add_plugin(okularGenerator_djvu ${okularGenerator_djvu_SRCS})
|
|
|
|
target_link_libraries(okularGenerator_djvu okularcore ${DJVULIBRE_LIBRARY} ${KDE4_KDEUI_LIBS} )
|
|
|
|
install(TARGETS okularGenerator_djvu DESTINATION ${PLUGIN_INSTALL_DIR})
|
|
|
|
|
|
########### install files ###############
|
|
|
|
install( FILES libokularGenerator_djvu.desktop okularDjvu.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
install( FILES okularApplication_djvu.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
|
|
|
|
|