2014-11-19 02:23:05 +00:00
|
|
|
add_subdirectory( conf )
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_BINARY_DIR}/okular
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../..
|
2020-02-04 23:47:23 +00:00
|
|
|
${POPPLER_QT4_INCLUDE_DIR}
|
2014-11-19 02:23:05 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
2020-02-20 23:33:47 +02:00
|
|
|
# for syntex, properties already set in the parent directory
|
2014-11-19 02:23:05 +00:00
|
|
|
find_package(ZLIB REQUIRED)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
synctex
|
|
|
|
${ZLIB_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
set(okularGenerator_poppler_PART_SRCS
|
|
|
|
generator_pdf.cpp
|
|
|
|
formfields.cpp
|
|
|
|
annots.cpp
|
|
|
|
synctex/synctex_parser.c
|
|
|
|
synctex/synctex_parser_utils.c
|
|
|
|
)
|
|
|
|
|
|
|
|
kde4_add_kcfg_files(okularGenerator_poppler_PART_SRCS conf/pdfsettings.kcfgc )
|
|
|
|
|
|
|
|
kde4_add_plugin(okularGenerator_poppler ${okularGenerator_poppler_PART_SRCS})
|
|
|
|
|
2020-02-20 23:33:47 +02:00
|
|
|
target_link_libraries(okularGenerator_poppler
|
|
|
|
${KDE4_KDEUI_LIBS}
|
|
|
|
${QT_QTXML_LIBRARY}
|
|
|
|
${ZLIB_LIBRARIES}
|
|
|
|
${POPPLER_QT4_LIBRARIES}
|
|
|
|
okularcore
|
|
|
|
)
|
2014-11-19 02:23:05 +00:00
|
|
|
|
2020-02-08 18:39:41 +00:00
|
|
|
install(TARGETS okularGenerator_poppler DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
|
2014-11-19 02:23:05 +00:00
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
2020-02-20 23:33:47 +02:00
|
|
|
install(
|
|
|
|
FILES libokularGenerator_poppler.desktop okularPoppler.desktop
|
|
|
|
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
PROGRAMS okularApplication_pdf.desktop
|
|
|
|
DESTINATION ${KDE4_XDG_APPS_INSTALL_DIR}
|
|
|
|
)
|
2014-11-19 02:23:05 +00:00
|
|
|
|