summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
blob: 30ba6255f56d03ae394b7cf0d580409182155072 (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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
#################################################
#
#  (C) 2011 Timothy Pearson
#  kb9vqf (AT) pearsoncomputing.net
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

include_directories(
  ${TQT_INCLUDE_DIRS}
  ${TDE_INCLUDE_DIR}
  ${CMAKE_BINARY_DIR}
  ${CMAKE_BINARY_DIR}/src
  ${CMAKE_SOURCE_DIR}/src
  ${CMAKE_SOURCE_DIR}/src/settings
  ${CMAKE_SOURCE_DIR}/src/svnqt
  ${CMAKE_BINARY_DIR}/src/svnqt
  ${CMAKE_SOURCE_DIR}/src/svnfrontend/graphtree
  ${CMAKE_SOURCE_DIR}/src/svnfrontend/fronthelpers
  ${CMAKE_SOURCE_DIR}/src/ksvnwidgets
  ${CMAKE_SOURCE_DIR}/src/helpers
  ${CMAKE_SOURCE_DIR}/src/svnfrontend
  ${CMAKE_SOURCE_DIR}/src/svnqt/cache
  ${SUBVERSION_INCLUDE_DIR}
  ${APR_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
  ${CMAKE_BINARY_DIR}/src
)


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

INSTALL(FILES tdesvnui.rc DESTINATION ${DATA_INSTALL_DIR}/tdesvn)
INSTALL(FILES tdesvn_part.rc DESTINATION ${DATA_INSTALL_DIR}/tdesvnpart)
INSTALL(FILES tdesvn.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})


##### tdesvnaskpass #############################

tde_add_executable( tdesvnaskpass AUTOMOC
  SOURCES askpass/tdesvn-askpass.cpp
  LINK tdecore-shared tdeui-shared
  DESTINATION ${BIN_INSTALL_DIR}
)


##### tdesvn #####################################

tde_add_executable( tdesvn AUTOMOC
  SOURCES main.cpp tdesvn.cpp urldlg.cpp commandline.cpp
  LINK tdecore-shared tdeui-shared tdeparts-shared DCOP-shared tdeio-shared
  DESTINATION ${BIN_INSTALL_DIR}
)


##### tdesvnevents ###############################

set( target tdesvnevents )

tde_add_library( tdesvnevents SHARED AUTOMOC
  SOURCES tdesvn_events.cpp tdesvn_events.h
  LINK tdecore-shared svnqt
  DESTINATION ${LIB_INSTALL_DIR}
)


##### tdesvnpart #################################

set( target tdesvnpart )

set( ${target}_SRCS
  tdesvn_part.cpp settings/tdesvnsettings.kcfgc
  settings/dispcolor_settings.ui settings/display_settings.ui settings/revisiontree_settings.ui
  settings/subversion_settings.ui settings/cmdexecsettings.ui
  settings/diffmergesettings.ui
  tdesvnview.cpp commandline_part.cpp
)

tde_add_kpart( ${target} AUTOMOC
  SOURCES ${${target}_SRCS}
  LINK tdecore-shared tdeio-shared tdeparts-shared tdeui-shared svnqt tdesvnhelpers tdesvnevents tdesvncfgreader ksvnwidgets svnfrontend
  DESTINATION ${PLUGIN_INSTALL_DIR}
)

ADD_DEPENDENCIES(tdesvnpart-module ksvnwidgets-shared)
ADD_DEPENDENCIES(tdesvnpart-module svnfrontend-shared)


##### kded_tdesvnd ##############################

tde_add_kpart( kded_tdesvnd AUTOMOC
  SOURCES tdesvnd/tdesvnd_dcop.cpp tdesvnd/tdesvnd_dcop.skel tdesvnd/tdesvnd_dcop.h
  LINK svnqt ksvnwidgets tdesvnhelpers tdesvncfgreader tdecore-shared tdeui-shared DCOP-shared tdeio-shared tdeinit_kded-shared
  DESTINATION ${PLUGIN_INSTALL_DIR}
)

ADD_DEPENDENCIES(kded_tdesvnd-module tdesvnhelpers-shared)
ADD_DEPENDENCIES(kded_tdesvnd-module tdesvncfgreader-shared)
ADD_DEPENDENCIES(kded_tdesvnd-module tdesvnevents-shared)
ADD_DEPENDENCIES(kded_tdesvnd-module ksvnwidgets-shared)


##### svnfrontend ###############################

tde_add_library( svnfrontend SHARED AUTOMOC
  SOURCES svnfrontend/ccontextlistener.cpp
    svnfrontend/commandexec.cpp
    svnfrontend/copymoveview_impl.cpp
    svnfrontend/createrepo_impl.cpp
    svnfrontend/dummydisplay.cpp
    svnfrontend/dumprepo_impl.cpp
    svnfrontend/editproperty_impl.cpp
    svnfrontend/filelistviewitem.cpp
    svnfrontend/fronthelpers/checkoutinfo_impl.cpp
    svnfrontend/fronthelpers/checkoutinfo_impl.h
    svnfrontend/fronthelpers/rangeinput_impl.cpp
    svnfrontend/fronthelpers/rangeinput_impl.h
    svnfrontend/fronthelpers/revisionbuttonimpl.cpp
    svnfrontend/fronthelpers/revisionbuttonimpl.h
    svnfrontend/fronthelpers/cursorstack.h
    svnfrontend/fronthelpers/widgetblockstack.cpp
    svnfrontend/fronthelpers/widgetblockstack.h
    svnfrontend/fronthelpers/propertylist.cpp
    svnfrontend/fronthelpers/propertylist.h
    svnfrontend/fronthelpers/propertyitem.cpp
    svnfrontend/fronthelpers/propertyitem.h
    svnfrontend/graphtree/drawparams.cpp
    svnfrontend/graphtree/drawparams.h
    svnfrontend/graphtree/elogentry.cpp
    svnfrontend/graphtree/elogentry.h
    svnfrontend/graphtree/graphtreelabel.cpp
    svnfrontend/graphtree/graphtreelabel.h
    svnfrontend/graphtree/pannerview.cpp
    svnfrontend/graphtree/pannerview.h
    svnfrontend/graphtree/revgraphview.cpp
    svnfrontend/graphtree/revgraphview.h
    svnfrontend/graphtree/revisiontree.cpp
    svnfrontend/graphtree/revisiontree.h
    svnfrontend/graphtree/revtreewidget.cpp
    svnfrontend/graphtree/revtreewidget.h
    svnfrontend/hotcopydlg_impl.cpp
    svnfrontend/importdir_logmsg.cpp
    svnfrontend/itemdisplay.cpp
    svnfrontend/tdesvnfilelist.cpp
    svnfrontend/keystatus.cpp
    svnfrontend/loaddmpdlg_impl.cpp
    svnfrontend/mergedlg_impl.cpp
    svnfrontend/modifiedthread.cpp
    svnfrontend/opencontextmenu.cpp
    svnfrontend/propertiesdlg.cpp
    svnfrontend/stopdlg.cpp
    svnfrontend/svnactions.cpp
    svnfrontend/svnfiletip.cpp
    svnfrontend/svnitem.cpp
    svnfrontend/svnlogdlgimp.cpp
    svnfrontend/tcontextlistener.cpp
    svnfrontend/blamedisplay_impl.cpp
    svnfrontend/threadcontextlistenerdata.cpp
    svnfrontend/fillcachethread.cpp
    svnfrontend/fillcachethread.h
    svnfrontend/copymoveview.ui
    svnfrontend/createrepo_dlg.ui
    svnfrontend/dumprepo_dlg.ui
    svnfrontend/editpropsdlg.ui
    svnfrontend/fronthelpers/checkoutinfo.ui
    svnfrontend/fronthelpers/rangeinput.ui
    svnfrontend/fronthelpers/revisionbutton.ui
    svnfrontend/hotcopydlg.ui
    svnfrontend/loaddmpdlg.ui
    svnfrontend/merge_dlg.ui
    svnfrontend/blamedisplay.ui
    svnfrontend/svnlogdlg.ui
    commandline.cpp
    commandline_part.cpp
    tdesvnview.cpp
    tdesvn_part.cpp
  LINK svnqt tdecore-shared tdesvnhelpers tdesvnevents tdesvncfgreader tdeui-shared ksvnwidgets tdeio-shared tdeparts-shared
  DESTINATION ${LIB_INSTALL_DIR}
)

ADD_DEPENDENCIES(svnfrontend-shared ksvnwidgets-shared)


##### ksvnwidgets ###############################

tde_add_library( ksvnwidgets SHARED AUTOMOC
  SOURCES ksvnwidgets/authdialogimpl.cpp ksvnwidgets/logmsg_impl.cpp
    ksvnwidgets/ssltrustprompt_impl.cpp ksvnwidgets/pwstorage.cpp
    ksvnwidgets/diffbrowser.cpp ksvnwidgets/diffbrowserdata.cpp
    ksvnwidgets/diffsyntax.cpp ksvnwidgets/encodingselector_impl.cpp
    ksvnwidgets/depthselector.cpp ksvnwidgets/revertform_impl.cpp
    ksvnwidgets/logmessage.ui ksvnwidgets/ssltrustprompt.ui ksvnwidgets/authdlg.ui
    ksvnwidgets/encodingselector.ui ksvnwidgets/depthform.ui ksvnwidgets/revertform.ui
  LINK tdesvnhelpers tdesvncfgreader svnqt tdecore-shared tdeui-shared tdeio-shared
  DESTINATION ${LIB_INSTALL_DIR}
)

ADD_DEPENDENCIES(ksvnwidgets-shared tdesvncfgreader-shared)
ADD_DEPENDENCIES(ksvnwidgets-shared tdesvnhelpers-shared)


##### tdeio_ksvn ##################################

tde_add_kpart( tdeio_ksvn AUTOMOC
  SOURCES tdeiosvn/tdeiosvn.cpp tdeiosvn/tdeiolistener.cpp tdeiosvn/tdeiobytestream.cpp ksvnwidgets/pwstorage.cpp
  LINK svnqt tdesvnhelpers tdesvncfgreader tdecore-shared tdeui-shared DCOP-shared tdeio-shared
  DESTINATION ${PLUGIN_INSTALL_DIR}
)

ADD_DEPENDENCIES(tdeio_ksvn-module tdesvnhelpers-shared)
ADD_DEPENDENCIES(tdeio_ksvn-module tdesvncfgreader-shared)
ADD_DEPENDENCIES(tdeio_ksvn-module tdesvnevents-shared)


##### tdesvnhelpers ##############################

tde_add_library( tdesvnhelpers SHARED AUTOMOC
  SOURCES helpers/ktranslateurl.cpp helpers/sshagent.cpp helpers/sub2qt.cpp
  LINK tdecore-shared svnqt
  DESTINATION ${LIB_INSTALL_DIR}
)


##### tdesvncfgreader ###########################

tde_add_library( tdesvncfgreader SHARED AUTOMOC
  SOURCES settings/dispcolor_settings.ui
    settings/display_settings.ui settings/revisiontree_settings.ui
    settings/subversion_settings.ui settings/cmdexecsettings.ui
    settings/diffmergesettings.ui settings/dispcolorsettings_impl.cpp
    settings/displaysettings_impl.cpp settings/revisiontreesettingsdlg_impl.cpp
    settings/subversionsettings_impl.cpp settings/cmdexecsettings_impl.cpp
    settings/diffmergesettings_impl.cpp settings/tdesvnsettings.kcfgc
  LINK tdecore-shared tdeui-shared
  DESTINATION ${LIB_INSTALL_DIR}
)

add_subdirectory( svnqt )
add_subdirectory( ksvnwidgets )
add_subdirectory( settings )
add_subdirectory( svnfrontend )
add_subdirectory( helpers )
add_subdirectory( tdesvnd )
add_subdirectory( tdeiosvn )
add_subdirectory( pics )
add_subdirectory( icons )