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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
|
--- a/plugins/color/lcms2engine/CMakeLists.txt 2019-06-01 15:10:43.442258240 +0200
+++ b/plugins/color/lcms2engine/CMakeLists.txt 2019-06-01 15:10:43.452257980 +0200
@@ -1,6 +1,8 @@
project( lcmsengine )
+if(BUILD_TESTING)
add_subdirectory(tests)
+endif()
include_directories(SYSTEM
${LCMS2_INCLUDE_DIR}
--- a/plugins/extensions/qmic/CMakeLists.txt 2019-06-01 15:10:43.469257540 +0200
+++ b/plugins/extensions/qmic/CMakeLists.txt 2019-06-01 15:10:43.477257332 +0200
@@ -20,4 +20,6 @@
target_link_libraries(kritaqmic kritaui)
install(TARGETS kritaqmic DESTINATION ${KRITA_PLUGIN_INSTALL_DIR})
+if(BUILD_TESTING)
add_subdirectory(tests)
+endif()
--- a/plugins/filters/CMakeLists.txt 2019-06-01 15:10:43.488257047 +0200
+++ b/plugins/filters/CMakeLists.txt 2019-06-01 15:10:43.497256813 +0200
@@ -1,4 +1,6 @@
+if(BUILD_TESTING)
add_subdirectory( tests )
+endif()
add_subdirectory( blur )
add_subdirectory( colors )
add_subdirectory( colorsfilters )
--- a/plugins/filters/unsharp/CMakeLists.txt 2019-06-01 15:10:43.508256528 +0200
+++ b/plugins/filters/unsharp/CMakeLists.txt 2019-06-01 15:10:43.516256320 +0200
@@ -1,4 +1,6 @@
+if(BUILD_TESTING)
add_subdirectory( tests )
+endif()
set(kritaunsharpfilter_SOURCES
unsharp.cpp
--- a/plugins/dockers/lut/CMakeLists.txt 2019-06-01 15:10:43.527256035 +0200
+++ b/plugins/dockers/lut/CMakeLists.txt 2019-06-01 15:10:43.535255828 +0200
@@ -1,4 +1,6 @@
+if(BUILD_TESTING)
add_subdirectory(tests)
+endif()
include_directories(SYSTEM
${OCIO_INCLUDE_DIR}
--- a/plugins/dockers/animation/CMakeLists.txt 2019-06-01 15:10:43.546255542 +0200
+++ b/plugins/dockers/animation/CMakeLists.txt 2019-06-01 15:10:43.555255309 +0200
@@ -1,5 +1,7 @@
if (NOT WIN32 AND NOT APPLE)
- add_subdirectory(tests)
+ if(BUILD_TESTING)
+add_subdirectory(tests)
+endif()
endif()
set(KRITA_ANIMATIONDOCKER_SOURCES
--- a/plugins/tools/tool_transform2/CMakeLists.txt 2019-06-01 15:10:43.566255024 +0200
+++ b/plugins/tools/tool_transform2/CMakeLists.txt 2019-06-01 15:10:43.574254816 +0200
@@ -1,5 +1,7 @@
if (NOT WIN32 AND NOT APPLE)
- add_subdirectory(tests)
+ if(BUILD_TESTING)
+add_subdirectory(tests)
+endif()
endif()
set(kritatooltransform_SOURCES
--- a/plugins/tools/basictools/CMakeLists.txt 2019-06-01 15:10:43.584254557 +0200
+++ b/plugins/tools/basictools/CMakeLists.txt 2019-06-01 15:10:43.592254349 +0200
@@ -1,5 +1,7 @@
if (NOT APPLE)
- add_subdirectory(tests)
+ if(BUILD_TESTING)
+add_subdirectory(tests)
+endif()
endif ()
set(kritadefaulttools_SOURCES
--- a/plugins/impex/tiff/CMakeLists.txt 2019-06-01 15:10:43.602254090 +0200
+++ b/plugins/impex/tiff/CMakeLists.txt 2019-06-01 15:10:43.609253908 +0200
@@ -1,4 +1,6 @@
+if(BUILD_TESTING)
add_subdirectory(tests)
+endif()
set(libkritatiffconverter_LIB_SRCS
kis_tiff_converter.cc
--- a/plugins/impex/libkra/CMakeLists.txt 2019-06-01 15:10:43.620253623 +0200
+++ b/plugins/impex/libkra/CMakeLists.txt 2019-06-01 15:10:43.627253441 +0200
@@ -1,4 +1,6 @@
+if(BUILD_TESTING)
add_subdirectory(tests)
+endif()
set(kritalibkra_LIB_SRCS
kis_colorize_dom_utils.cpp
--- a/plugins/impex/jpeg/CMakeLists.txt 2019-06-01 15:10:43.638253156 +0200
+++ b/plugins/impex/jpeg/CMakeLists.txt 2019-06-01 15:10:43.646252949 +0200
@@ -1,4 +1,6 @@
+if(BUILD_TESTING)
add_subdirectory(tests)
+endif()
set(ICCJPEG_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/lcms")
--- a/plugins/impex/psd/CMakeLists.txt 2019-06-01 15:10:43.662252534 +0200
+++ b/plugins/impex/psd/CMakeLists.txt 2019-06-01 15:10:43.671252300 +0200
@@ -1,5 +1,7 @@
if (NOT MSVC AND NOT APPLE)
- add_subdirectory(tests)
+ if(BUILD_TESTING)
+add_subdirectory(tests)
+endif()
endif()
configure_file(config_psd.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config_psd.h)
--- a/plugins/impex/xcf/CMakeLists.txt 2019-06-01 15:10:43.685251937 +0200
+++ b/plugins/impex/xcf/CMakeLists.txt 2019-06-01 15:10:43.694251704 +0200
@@ -1,4 +1,6 @@
+if(BUILD_TESTING)
add_subdirectory(tests)
+endif()
set(XCFTOOLS_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/xcftools")
--- a/plugins/impex/heightmap/CMakeLists.txt 2019-06-01 15:10:43.705251418 +0200
+++ b/plugins/impex/heightmap/CMakeLists.txt 2019-06-01 15:10:43.714251185 +0200
@@ -1,4 +1,6 @@
+if(BUILD_TESTING)
add_subdirectory(tests)
+endif()
include_directories( ${CMAKE_CURRENT_SOURCE_DIR} )
--- a/plugins/impex/csv/CMakeLists.txt 2019-06-01 15:10:43.725250900 +0200
+++ b/plugins/impex/csv/CMakeLists.txt 2019-06-01 15:10:43.734250666 +0200
@@ -1,4 +1,6 @@
+if(BUILD_TESTING)
add_subdirectory(tests)
+endif()
# import
--- a/plugins/impex/exr/CMakeLists.txt 2019-06-01 15:10:43.745250381 +0200
+++ b/plugins/impex/exr/CMakeLists.txt 2019-06-01 15:10:43.754250148 +0200
@@ -1,4 +1,6 @@
+if(BUILD_TESTING)
add_subdirectory(tests)
+endif()
include_directories(SYSTEM ${OPENEXR_INCLUDE_DIR} )
--- a/plugins/impex/ppm/CMakeLists.txt 2019-06-01 15:10:43.765249862 +0200
+++ b/plugins/impex/ppm/CMakeLists.txt 2019-06-01 15:10:43.773249655 +0200
@@ -1,4 +1,6 @@
+if(BUILD_TESTING)
add_subdirectory(tests)
+endif()
include_directories( ${CMAKE_CURRENT_SOURCE_DIR} )
--- a/plugins/impex/svg/CMakeLists.txt 2019-06-01 15:10:43.784249370 +0200
+++ b/plugins/impex/svg/CMakeLists.txt 2019-06-01 15:10:43.792249162 +0200
@@ -1,4 +1,6 @@
+if(BUILD_TESTING)
add_subdirectory(tests)
+endif()
set(kritasvgimport_SOURCES
kis_svg_import.cc
--- a/plugins/impex/png/CMakeLists.txt 2019-06-01 15:10:43.803248877 +0200
+++ b/plugins/impex/png/CMakeLists.txt 2019-06-01 15:10:43.811248669 +0200
@@ -1,4 +1,6 @@
+if(BUILD_TESTING)
add_subdirectory(tests)
+endif()
set(kritapngimport_SOURCES
kis_png_import.cc
--- a/plugins/paintops/libpaintop/CMakeLists.txt 2019-06-01 15:10:43.823248358 +0200
+++ b/plugins/paintops/libpaintop/CMakeLists.txt 2019-06-01 15:10:43.831248150 +0200
@@ -104,4 +104,6 @@
install(TARGETS kritalibpaintop ${INSTALL_TARGETS_DEFAULT_ARGS})
+if(BUILD_TESTING)
add_subdirectory(tests)
+endif()
--- a/plugins/paintops/defaultpaintops/CMakeLists.txt 2019-06-01 15:10:43.842247865 +0200
+++ b/plugins/paintops/defaultpaintops/CMakeLists.txt 2019-06-01 15:10:43.850247658 +0200
@@ -1,4 +1,6 @@
+if(BUILD_TESTING)
add_subdirectory(brush/tests)
+endif()
include_directories(brush
duplicate
--- a/libs/metadata/CMakeLists.txt 2019-06-01 15:10:43.862247346 +0200
+++ b/libs/metadata/CMakeLists.txt 2019-06-01 15:10:43.870247139 +0200
@@ -29,4 +29,6 @@
install(TARGETS kritametadata ${INSTALL_TARGETS_DEFAULT_ARGS})
+if(BUILD_TESTING)
add_subdirectory(tests)
+endif()
--- a/libs/global/CMakeLists.txt 2019-06-01 15:10:43.881246854 +0200
+++ b/libs/global/CMakeLists.txt 2019-06-01 15:10:43.890246620 +0200
@@ -1,4 +1,6 @@
+if(BUILD_TESTING)
add_subdirectory( tests )
+endif()
include(CheckFunctionExists)
check_function_exists(backtrace HAVE_BACKTRACE)
--- a/libs/ui/CMakeLists.txt 2019-06-01 15:10:43.901246335 +0200
+++ b/libs/ui/CMakeLists.txt 2019-06-01 15:10:43.911246076 +0200
@@ -7,7 +7,9 @@
${OCIO_INCLUDE_DIR}
)
+if(BUILD_TESTING)
add_subdirectory( tests )
+endif()
if (APPLE)
find_library(FOUNDATION_LIBRARY Foundation)
--- a/libs/flake/CMakeLists.txt 2019-06-01 15:10:43.922245790 +0200
+++ b/libs/flake/CMakeLists.txt 2019-06-01 15:10:43.931245557 +0200
@@ -9,7 +9,9 @@
)
add_subdirectory(styles)
+if(BUILD_TESTING)
add_subdirectory(tests)
+endif()
set(kritaflake_SRCS
KoGradientHelper.cpp
--- a/libs/brush/CMakeLists.txt 2019-06-01 15:10:43.943245246 +0200
+++ b/libs/brush/CMakeLists.txt 2019-06-01 15:10:43.952245012 +0200
@@ -1,4 +1,6 @@
+if(BUILD_TESTING)
add_subdirectory( tests )
+endif()
include_directories(SYSTEM
${EIGEN3_INCLUDE_DIR}
--- a/libs/widgetutils/CMakeLists.txt 2019-06-01 15:10:43.963244727 +0200
+++ b/libs/widgetutils/CMakeLists.txt 2019-06-01 15:10:43.972244494 +0200
@@ -1,4 +1,6 @@
+if(BUILD_TESTING)
add_subdirectory(tests)
+endif()
configure_file(xmlgui/config-xmlgui.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-xmlgui.h )
--- a/libs/store/CMakeLists.txt 2019-06-01 15:10:43.984244182 +0200
+++ b/libs/store/CMakeLists.txt 2019-06-01 15:10:43.992243975 +0200
@@ -1,6 +1,8 @@
include_directories(${QUAZIP_INCLUDE_DIRS})
+if(BUILD_TESTING)
add_subdirectory(tests)
+endif()
set(kritastore_LIB_SRCS
KoDirectoryStore.cpp
--- a/libs/pigment/CMakeLists.txt 2019-06-01 15:10:44.002243716 +0200
+++ b/libs/pigment/CMakeLists.txt 2019-06-01 15:10:44.010243508 +0200
@@ -31,7 +31,9 @@
message("${__per_arch_factory_objs}")
endif()
+if(BUILD_TESTING)
add_subdirectory(tests)
+endif()
add_subdirectory(benchmarks)
set(kritapigment_SRCS
--- a/libs/libkis/CMakeLists.txt 2019-06-01 15:10:44.021243223 +0200
+++ b/libs/libkis/CMakeLists.txt 2019-06-01 15:10:44.028243041 +0200
@@ -47,4 +47,6 @@
install(TARGETS kritalibkis ${INSTALL_TARGETS_DEFAULT_ARGS})
+if(BUILD_TESTING)
add_subdirectory(tests)
+endif()
--- a/libs/image/CMakeLists.txt 2019-06-01 15:10:44.039242756 +0200
+++ b/libs/image/CMakeLists.txt 2019-06-01 15:10:44.047242548 +0200
@@ -1,4 +1,6 @@
+if(BUILD_TESTING)
add_subdirectory( tests )
+endif()
add_subdirectory( tiles3 )
--- a/libs/image/tiles3/CMakeLists.txt 2019-06-01 15:10:44.057242289 +0200
+++ b/libs/image/tiles3/CMakeLists.txt 2019-06-01 15:10:44.065242082 +0200
@@ -1 +1,3 @@
+if(BUILD_TESTING)
add_subdirectory(tests)
+endif()
--- a/libs/odf/CMakeLists.txt 2019-06-01 15:10:44.076241796 +0200
+++ b/libs/odf/CMakeLists.txt 2019-06-01 15:10:44.084241589 +0200
@@ -1,4 +1,6 @@
+if(BUILD_TESTING)
add_subdirectory( tests )
+endif()
set(kritaodf_LIB_SRCS
KoOdf.cpp
--- a/libs/widgets/CMakeLists.txt 2019-06-01 15:10:44.094241329 +0200
+++ b/libs/widgets/CMakeLists.txt 2019-06-01 15:10:44.102241122 +0200
@@ -1,4 +1,6 @@
+if(BUILD_TESTING)
add_subdirectory( tests )
+endif()
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|