summaryrefslogtreecommitdiffstats
path: root/kghostview/CMakeLists.txt
blob: f984f11959ce25ba1bc1d16b1d765f6d0a57a101 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#################################################
#
#  (C) 2010-2011 Calvin Morrison
#  [email protected]
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

add_subdirectory( data )

include_directories(
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}/dscparse
  ${CMAKE_BINARY_DIR}
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
)


#### other data #################################

tde_install_icons( kghostview )
install( FILES kghostview.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES kghostview_part.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES kgv_part.rc kghostviewui.rc DESTINATION ${DATA_INSTALL_DIR}/kghostview )
install( FILES kghostview.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
install( FILES kghostview.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR} )
install( PROGRAMS update-to-xt-names.pl DESTINATION ${KCONF_UPDATE_INSTALL_DIR} )


#### kghostviewlib (shared) #####################

tde_add_library( kghostviewlib SHARED AUTOMOC
  SOURCES
    kgvshell.cpp kgvdocument.cpp kgv_miniwidget.cpp
    marklist.cpp logwindow.cpp infodialog.cpp kgvpageview.cpp ps.c
    kgv_view.cpp scrollbox.cpp  kgvpagedecorator.cpp
    kgvconfigdialog.cpp kgvmainwidget.cpp  kdscerrordialog.cpp
    displayoptions.cpp kpswidget.cpp fullscreenfilter.cpp
    kgvfactory.cpp  generalsettingswidget.ui gssettingswidget.ui
    thumbnailservice.cpp  configuration.kcfgc
  LINK dscparse-static kdeprint-shared kparts-shared
  DESTINATION ${LIB_INSTALL_DIR}
)


#### kghostviewpart (module) ####################

tde_add_kpart( kghostviewpart AUTOMOC
  SOURCES part_init.cpp
  LINK kghostviewlib-shared
  DESTINATION ${PLUGIN_INSTALL_DIR}
)


#### kghostview (executable) ####################

tde_add_executable( kghostview AUTOMOC
  SOURCES main.cpp
  LINK kghostviewlib-shared
  DESTINATION ${BIN_INSTALL_DIR}
)