blob: 71d533592b6d631868d70b18b672dacfd7804ed1 (
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
project( kviewshell )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### kviewshell (static) #######################
# we need this library for kdvi and kfax
tde_add_library( kviewshell STATIC_PIC AUTOMOC
SOURCES
kviewshell.cpp
)
##### kviewshell itself #########################
if ( BUILD_KVIEWSHELL )
add_subdirectory( pics )
add_subdirectory( plugins )
##### ifaces (static) ###########################
tde_add_library( ifaces STATIC_PIC AUTOMOC
SOURCES
kviewpart_iface.cpp
)
##### headers ###################################
install( FILES
tdemultipageInterface.h
DESTINATION ${INCLUDE_INSTALL_DIR} )
install( FILES
anchor.h bookmark.h pageView.h documentPageCache.h
documentRenderer.h documentWidget.h history.h hyperlink.h
tdemultipage.h length.h pageNumber.h pageSize.h renderedDocumentPage.h
renderedDocumentPagePixmap.h renderedDocumentPagePrinter.h
selection.h simplePageSize.h textBox.h zoom.h zoomlimits.h
DESTINATION ${INCLUDE_INSTALL_DIR}/kviewshell )
##### other data ################################
install( FILES kviewshell.rc DESTINATION ${DATA_INSTALL_DIR}/kviewshell )
install( FILES kviewerpart.rc DESTINATION ${DATA_INSTALL_DIR}/kviewerpart )
tde_create_translated_desktop(
SOURCE tdemultipage.desktop
DESTINATION ${SERVICETYPES_INSTALL_DIR}
PO_DIR kviewshell-desktops
)
tde_create_translated_desktop(
SOURCE emptymultipage.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR kviewshell-desktops
)
install( FILES kviewshell.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
##### tdemultipage (shared) #######################
tde_add_library( tdemultipage SHARED AUTOMOC
SOURCES
tdemultipage.cpp pageView.cpp marklist.cpp tdemultipageInterface.skel
units.cpp pageSize.cpp simplePageSize.cpp renderedDocumentPage.cpp
renderedDocumentPagePixmap.cpp renderedDocumentPagePrinter.cpp
documentPageCache.cpp documentWidget.cpp searchWidget.cpp
selection.cpp documentRenderer.cpp history.cpp kvsprefs.kcfgc
tableOfContents.cpp kprintDialogPage_pageoptions.cpp
VERSION 0.0.0
LINK tdeparts-shared tdeprint-shared
DESTINATION ${LIB_INSTALL_DIR}
)
##### kviewerpart (module) ######################
tde_add_kpart( kviewerpart AUTOMOC
SOURCES
kviewpart.cpp pageSizeWidget_base.ui pageSizeWidget.cpp
pageSizeDialog.cpp pageSize.cpp sizePreview.cpp zoom.cpp
units.cpp kvsprefs.kcfgc optionDialogGUIWidget_base.ui
optionDialogAccessibilityWidget.ui simplePageSize.cpp
LINK ifaces-static tdemultipage-shared tdeparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### kviewshell (executable) ##################
tde_add_executable( kviewshell AUTOMOC
SOURCES
main.cpp
LINK kviewshell-static tdeparts-shared
DESTINATION ${BIN_INSTALL_DIR}
)
##### emptymultipagepart (module) ###############
tde_add_kpart( emptymultipagepart AUTOMOC
SOURCES
empty_multipage.cpp emptyRenderer.cpp
LINK tdemultipage-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### install import cmake modules ###############
tde_install_export( )
endif( BUILD_KVIEWSHELL )
|