summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
blob: 24ab92b4992c1f1e1737b784d6b0d9fd802481f3 (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
#################################################
#
#  (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/fronthelpers/
  /usr/include/subversion-1
  /usr/include/apr-1.0
)

link_directories(
  ${TQT_LIBRARY_DIRS}
)


##### 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 kparts-shared DCOP-shared kio-shared
  DESTINATION ${BIN_INSTALL_DIR}
)


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

set( target tdesvnpart )

set( ${target}_SRCS
  tdesvn_events.cpp tdesvn_events.h 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 kio-shared kparts-shared tdeui-shared
  DESTINATION ${PLUGIN_INSTALL_DIR}
)


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

tde_add_library( svnfrontend STATIC 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
#  LINK kio-shared
  DESTINATION ${LIB_INSTALL_DIR}
)


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

tde_add_library( ksvnwidgets STATIC 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 kio-shared
  DESTINATION ${LIB_INSTALL_DIR}
)


##### kio_ksvn ##################################

tde_add_kpart( kio_ksvn AUTOMOC
  SOURCES kiosvn/kiosvn.cpp kiosvn/kiolistener.cpp kiosvn/kiobytestream.cpp ksvnwidgets/pwstorage.cpp
  LINK kio_ksvn svnqt tdesvnhelpers tdesvncfgreader tdecore-shared tdeui-shared DCOP-shared kio-shared kwallet-shared
  DESTINATION ${PLUGIN_INSTALL_DIR}
)

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