summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/CMakeLists.txt
blob: 9396313820dbe231d1cb34aceb40b47de97f736d (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

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

link_directories(
  ${TQT_LIBRARY_DIRS}
)


##### generate kmmwidgets.cpp

add_custom_command(
  OUTPUT kmmwidgets.cpp
  COMMENT "Generating kmymoney2/widgets/kmmwidgets.cpp"
  COMMAND ${KDE3_MAKETDEWIDGETS_EXECUTABLE}
    -g KMyMoney -n CustomWidgetPlugin -o kmmwidgets.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/kmymoney.widgets
  DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/kmymoney.widgets
)


##### widgets (static)

tde_add_library( widgets STATIC_PIC AUTOMOC
  SOURCES
    kbudgetvalues.cpp
    kbudgetvaluesdecl.ui
    kguiutils.cpp
    tdelistviewsearchline.cpp
    kmymoneyaccountcombo.cpp
    kmymoneyaccountcompletion.cpp
    kmymoneyaccountselector.cpp
    kmymoneyaccounttreebase.cpp
    kmymoneyaccounttree.cpp
    kmymoneyaccounttreebudget.cpp
    kmymoneyaccounttreeforecast.cpp
    kmymoneybriefschedule.cpp
    kmymoneycalculator.cpp
    kmymoneycalendar.cpp
    kmymoneycategory.cpp
    kmymoneychecklistitem.cpp
    kmymoneycombo.cpp
    kmymoneycompletion.cpp
    kmymoneycurrencyselector.cpp
    kmymoneydateinput.cpp
    kmymoneydatetbl.cpp
    kmymoneyedit.cpp
    kmymoneyforecastlistviewitem.cpp
    kmymoneygpgconfig.cpp
    kmymoneygpgconfigdecl.ui
    kmymoneylineedit.cpp
    kmymoneylistviewitem.cpp
    kmymoneyonlinequoteconfig.cpp
    kmymoneyonlinequoteconfigdecl.ui
    kmymoneypriceview.cpp
    kmymoneyreportconfigtab1decl.ui
    kmymoneyreportconfigtab2decl.ui
    kmymoneyreportconfigtab3decl.ui
    kmymoneyreportconfigtabchartdecl.ui
    kmymoneyreportcontroldecl.ui
    kmymoneyscheduledcalendar.cpp
    kmymoneyscheduleddatetbl.cpp
    kmymoneyselector.cpp
    kmymoneytitlelabel.cpp
    kmymoneywizard.cpp
    kschedulebriefwidget.ui
    register.cpp
    registeritem.cpp
    registersearchline.cpp
    transaction.cpp
    scheduledtransaction.cpp
    stdtransactiondownloaded.cpp
    stdtransactionmatched.cpp
    transactioneditorcontainer.cpp
    transactionform.cpp
    kaccounttemplateselectordecl.ui
    kaccounttemplateselector.cpp
    transactionsortoption.ui
    selectedtransaction.cpp

  LINK
    tdeui-shared

  DEPENDENCIES
    kmm-includes
)


##### kmymoney (shared)

if( BUILD_DESIGNER_PLUGIN )

  tde_add_library( kmymoney SHARED AUTOMOC
    SOURCES
      kmymoneycompletion.cpp
      kmymoneyaccountcombo.cpp
      kmymoneyaccountcompletion.cpp
      kmymoneycurrencyselector.cpp
      kmymoneyaccountselector.cpp
      kmymoneydatetbl.cpp
      kmymoneycalculator.cpp
      kmymoneycategory.cpp
      kmymoneycombo.cpp
      kmymoneylineedit.cpp
      kmymoneyedit.cpp
      kmymoneydateinput.cpp
      kmymoneyaccounttree.cpp
      kmymoneytitlelabel.cpp
      kguiutils.cpp
      kmymoneyaccounttreebase.cpp
      kmymoneyaccounttreebudget.cpp
      kmymoneyaccounttreeforecast.cpp
      register.cpp
      registeritem.cpp
      transaction.cpp
      scheduledtransaction.cpp
      selectedtransaction.cpp
      stdtransactiondownloaded.cpp
      stdtransactionmatched.cpp
      transactionform.cpp
      kmymoneychecklistitem.cpp
      kmymoneylistviewitem.cpp
      kmymoneyselector.cpp
      kbudgetvalues.cpp
      kaccounttemplateselector.cpp

      ${CMAKE_CURRENT_BINARY_DIR}/kbudgetvaluesdecl.cpp
      ${CMAKE_CURRENT_BINARY_DIR}/kaccounttemplateselectordecl.cpp
      ${CMAKE_CURRENT_BINARY_DIR}/kmmwidgets.cpp
      ${CMAKE_CURRENT_BINARY_DIR}/transactionsortoption.cpp

      void-timetrace.cpp

    LINK
      kmymoneysettings-static
      kmm_mymoney-static
      kmm_kdchart-static
      converter-static
      dialogs-static
      reports-static
      storage-static
      tdecore-shared tdeui-shared tdeio-shared

    DEPENDENCIES
      kmm-includes

    DESTINATION "${TQT_PLUGINS_DIR}/designer"
  )

  # Make sure to compile the TQt designer version.
  set_property(
    TARGET kmymoney-shared
    APPEND PROPERTY COMPILE_DEFINITIONS KMM_DESIGNER
  )

endif()


##### other data

kmm_install_includes(
  FILES
    kmymoneydateinput.h
    kmymoneyedit.h
    kmymoneytitlelabel.h
    kmymoneyaccountselector.h
    kmymoneycategory.h
    kmymoneyaccounttreebase.h
    kmymoneyaccounttree.h
    kmymoneycurrencyselector.h
    kguiutils.h
    kmymoneywizard.h
    kmymoneyaccounttreebudget.h
    kmymoneyaccounttreeforecast.h
    kmymoneyaccountcombo.h
    register.h
    registeritem.h
    transaction.h
    scheduledtransaction.h
    stdtransactiondownloaded.h
    stdtransactionmatched.h
    selectedtransaction.h
    transactionform.h
    transactioneditorcontainer.h
    kmymoneylineedit.h
    kmymoneychecklistitem.h
    kmymoneylistviewitem.h
    kmymoneyforecastlistviewitem.h
    kmymoneyselector.h
    kmymoneyaccountcompletion.h
    kmymoneycompletion.h
    kmymoneycombo.h
    kbudgetvalues.h
    kaccounttemplateselector.h
    ${CMAKE_CURRENT_BINARY_DIR}/kbudgetvaluesdecl.h
    ${CMAKE_CURRENT_BINARY_DIR}/transactionsortoption.h
  DESTINATION ${INCLUDE_INSTALL_DIR}/kmymoney
)