CMakeLists.txt 1.19 KB
Newer Older
1
remove_definitions(-DTRANSLATION_DOMAIN="okular")
2 3
add_definitions(-DTRANSLATION_DOMAIN="okular_ghostview")

4
add_subdirectory( conf )
5

6
include_directories(
7
   ${LIBSPECTRE_INCLUDE_DIR}
8
   ${CMAKE_CURRENT_SOURCE_DIR}/../..
9 10
   ${CMAKE_CURRENT_BINARY_DIR}/../..
)
11 12 13

########### next target ###############

Pino Toscano's avatar
Pino Toscano committed
14 15
set(okularGenerator_ghostview_SRCS
   generator_ghostview.cpp
16
   rendererthread.cpp
Laurent Montel's avatar
Laurent Montel committed
17
   spectre_debug.cpp
Pino Toscano's avatar
Pino Toscano committed
18
)
19

Vishesh Handa's avatar
Vishesh Handa committed
20
ki18n_wrap_ui(okularGenerator_ghostview_SRCS
21 22 23
   conf/gssettingswidget.ui
)

24
kconfig_add_kcfg_files(okularGenerator_ghostview_SRCS conf/gssettings.kcfgc )
25

26

27
okular_add_generator(okularGenerator_ghostview ${okularGenerator_ghostview_SRCS})
28

29
target_link_libraries(okularGenerator_ghostview okularcore ${LIBSPECTRE_LIBRARY} KF5::I18n Qt5::Xml)
30 31 32

########### install files ###############

33
install( PROGRAMS okularApplication_ghostview.desktop org.kde.mobile.okular_ghostview.desktop  DESTINATION  ${KDE_INSTALL_APPDIR} )
34
install( FILES okularGhostview.desktop  DESTINATION  ${KDE_INSTALL_KSERVICES5DIR} )
Laurent Montel's avatar
Laurent Montel committed
35
ecm_install_icons(ICONS 16-apps-okular-gv.png  32-apps-okular-gv.png DESTINATION ${KDE_INSTALL_DATADIR}/okular/icons)
36
install( FILES org.kde.okular-spectre.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR} )