mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-17 23:11:48 +00:00
6aa123656a
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
40 lines
1.3 KiB
CMake
40 lines
1.3 KiB
CMake
add_subdirectory( kio-msits )
|
|
|
|
include_directories(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../..
|
|
${CMAKE_BINARY_DIR}/okular
|
|
${CHM_INCLUDE_DIR}
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../generators/chm/lib
|
|
)
|
|
|
|
|
|
########### next target ###############
|
|
|
|
set(chmlib_SRCS
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../generators/chm/lib/iconstorage.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../generators/chm/lib/kchmtextencoding.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../generators/chm/lib/kchmtreeviewitem.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../generators/chm/lib/kchmurl.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../generators/chm/lib/xchmfile.cpp
|
|
)
|
|
|
|
set(okularGenerator_chmlib_SRCS
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../generators/chm/generator_chm.cpp
|
|
)
|
|
|
|
set(okularGenerator_chmlib_PART_SRCS ${chmlib_SRCS} ${okularGenerator_chmlib_SRCS} )
|
|
|
|
|
|
kde4_add_plugin(okularGenerator_chmlib ${okularGenerator_chmlib_PART_SRCS})
|
|
|
|
target_link_libraries(okularGenerator_chmlib okularcore ${CHM_LIBRARY} ${KDE4_KHTML_LIBS} )
|
|
|
|
install(TARGETS okularGenerator_chmlib DESTINATION ${PLUGIN_INSTALL_DIR})
|
|
|
|
|
|
########### install files ###############
|
|
|
|
install( FILES libokularGenerator_chmlib.desktop okularChm.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
install( FILES okularApplication_chm.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
|
|
|