Code

Cmake: Moved helper macros to their own file and removed *-test.h from inkscape sourc...
[inkscape.git] / src / CMakeLists.txt
1 IF(WIN32)\r
2     SET(ONLY_WIN\r
3     registrytool.cpp
4     registrytool.h\r
5     #deptool.cpp
6     winmain.cpp)\r
7 ELSEIF(WIN32)\r
8     SET(ONLY_WIN)\r
9 ENDIF(WIN32)\r
10 \r
11 SET(INKSCAPE_SRC\r
12 approx-equal.h
13 arc-context.cpp
14 arc-context.h
15 attributes.cpp
16 attributes.h
17 #attributes-test.h
18 axis-manip.cpp
19 axis-manip.h
20 bad-uri-exception.h
21 box3d-context.cpp
22 box3d-context.h
23 box3d.cpp
24 box3d.h
25 box3d-side.cpp
26 box3d-side.h
27 brokenimage.xpm
28 color.cpp
29 color.h
30 color-profile.cpp
31 color-profile-fns.h
32 color-profile.h
33 #color-profile-test.h
34 color-rgba.h
35 composite-undo-stack-observer.cpp
36 composite-undo-stack-observer.h
37 conditions.cpp
38 conditions.h
39 conn-avoid-ref.cpp
40 conn-avoid-ref.h
41 connection-pool.h
42 connector-context.cpp
43 connector-context.h
44 console-output-undo-observer.cpp
45 console-output-undo-observer.h
46 context-fns.cpp
47 context-fns.h
48 decimal-round.h
49 deptool.cpp
50 desktop-affine.cpp
51 desktop-affine.h
52 desktop.cpp
53 desktop-events.cpp
54 desktop-events.h
55 desktop.h
56 desktop-handles.cpp
57 desktop-handles.h
58 desktop-style.cpp
59 desktop-style.h
60 device-manager.cpp
61 device-manager.h
62 dir-util.cpp
63 dir-util.h
64 #dir-util-test.h
65 document.cpp
66 document.h
67 document-private.h
68 document-subset.cpp
69 document-subset.h
70 document-undo.cpp
71 doxygen-main.cpp
72 draw-anchor.cpp
73 draw-anchor.h
74 draw-context.cpp
75 draw-context.h
76 dropper-context.cpp
77 dropper-context.h
78 dyna-draw-context.cpp
79 dyna-draw-context.h
80 ege-adjustment-action.cpp
81 ege-adjustment-action.h
82 ege-color-prof-tracker.cpp
83 ege-color-prof-tracker.h
84 ege-output-action.cpp
85 ege-output-action.h
86 ege-select-one-action.cpp
87 ege-select-one-action.h
88 enums.h
89 eraser-context.cpp
90 eraser-context.h
91 event-context.cpp
92 event-context.h
93 event.h
94 event-log.cpp
95 event-log.h
96 extension
97 extract-uri.cpp
98 extract-uri.h
99 #extract-uri-test.h
100 file.cpp
101 file.h
102 fill-or-stroke.h
103 filter-chemistry.cpp
104 filter-chemistry.h
105 filter-enums.cpp
106 filter-enums.h
107 fixes.cpp
108 flood-context.cpp
109 flood-context.h
110 fontsize-expansion.cpp
111 fontsize-expansion.h
112 forward.h
113 gc-alloc.h
114 gc-anchored.cpp
115 gc-anchored.h
116 gc-core.h
117 gc.cpp
118 gc-finalized.cpp
119 gc-finalized.h
120 gc-managed.h
121 gc-soft-ptr.h
122 gradient-chemistry.cpp
123 gradient-chemistry.h
124 gradient-context.cpp
125 gradient-context.h
126 gradient-drag.cpp
127 gradient-drag.h
128 guide-snapper.cpp
129 guide-snapper.h
130 help.cpp
131 helper-fns.h
132 help.h
133 icon-size.h
134 ige-mac-menu.c
135 ige-mac-menu.h
136 ink-action.cpp
137 ink-action.h
138 inkscape.cpp
139 inkscape.h
140 inkscape-private.h
141 inkscape.rc
142 inkscape-stock.cpp
143 inkscape-stock.h
144 inkscape_version.h.mingw
145 interface.cpp
146 interface.h
147 isinf.h
148 isnan.h
149 isnormal.h
150 jabber_whiteboard
151 knot.cpp
152 knot-enums.h
153 knot.h
154 knotholder.cpp
155 knot-holder-entity.h
156 knotholder.h
157 layer-fns.cpp
158 layer-fns.h
159 layer-manager.cpp
160 layer-manager.h
161 line-geometry.cpp
162 line-geometry.h
163 line-snapper.cpp
164 line-snapper.h
165 macros.h
166 main-cmdlineact.cpp
167 main-cmdlineact.h
168 main.cpp
169 marker.cpp
170 marker.h
171 media.cpp
172 media.h
173 memeq.h
174 menus-skeleton.h
175 message-context.cpp
176 message-context.h
177 message.h
178 message-stack.cpp
179 message-stack.h
180 mod360.cpp
181 mod360.h
182 #mod360-test.h
183 modifier-fns.h
184 MultiPrinter.h
185 node-context.cpp
186 node-context.h
187 nodepath.cpp
188 nodepath.h
189 number-opt-number.h
190 object-edit.cpp
191 object-edit.h
192 object-hierarchy.cpp
193 object-hierarchy.h
194 object-snapper.cpp
195 object-snapper.h
196 path-chemistry.cpp
197 path-chemistry.h
198 path-prefix.h
199 pencil-context.cpp
200 pencil-context.h
201 pen-context.cpp
202 pen-context.h
203 persp3d.cpp
204 persp3d.h
205 persp3d-reference.cpp
206 persp3d-reference.h
207 perspective-line.cpp
208 perspective-line.h
209 plugin.def
210 preferences.cpp
211 preferences.h
212 preferences-skeleton.h
213 prefix.cpp
214 prefix.h
215 prefs-utils.cpp
216 prefs-utils.h
217 print.cpp
218 print.h
219 profile-manager.cpp
220 profile-manager.h
221 proj_pt.cpp
222 proj_pt.h
223 PylogFormatter.h
224 rect-context.cpp
225 rect-context.h
226 remove-last.h
227 require-config.h
228 round.h
229 #round-test.h
230 rubberband.cpp
231 rubberband.h
232 satisfied-guide-cns.cpp
233 satisfied-guide-cns.h
234 selcue.cpp
235 selcue.h
236 select-context.cpp
237 select-context.h
238 selection-chemistry.cpp
239 selection-chemistry.h
240 selection.cpp
241 selection-describer.cpp
242 selection-describer.h
243 selection.h
244 #selfname.tpl
245 seltrans.cpp
246 seltrans.h
247 seltrans-handles.cpp
248 seltrans-handles.h
249 shape-editor.cpp
250 shape-editor.h
251 shortcuts.cpp
252 shortcuts.h
253 snap.cpp
254 snap.h
255 snapped-line.cpp
256 snapped-line.h
257 snapped-point.cpp
258 snapped-point.h
259 snapper.cpp
260 snapper.h
261 sp-anchor.cpp
262 sp-anchor.h
263 sp-animation.cpp
264 sp-animation.h
265 sp-clippath.cpp
266 sp-clippath.h
267 sp-conn-end.cpp
268 sp-conn-end.h
269 sp-conn-end-pair.cpp
270 sp-conn-end-pair.h
271 sp-cursor.cpp
272 sp-cursor.h
273 sp-defs.cpp
274 sp-defs.h
275 sp-ellipse.cpp
276 sp-ellipse.h
277 sp-feblend.cpp
278 sp-feblend-fns.h
279 sp-feblend.h
280 sp-fecolormatrix.cpp
281 sp-fecolormatrix-fns.h
282 sp-fecolormatrix.h
283 sp-fecomponenttransfer.cpp
284 sp-fecomponenttransfer-fns.h
285 sp-fecomponenttransfer-funcnode.cpp
286 sp-fecomponenttransfer-funcnode.h
287 sp-fecomponenttransfer.h
288 sp-fecomposite.cpp
289 sp-fecomposite-fns.h
290 sp-fecomposite.h
291 sp-feconvolvematrix.cpp
292 sp-feconvolvematrix-fns.h
293 sp-feconvolvematrix.h
294 sp-fediffuselighting.cpp
295 sp-fediffuselighting-fns.h
296 sp-fediffuselighting.h
297 sp-fedisplacementmap.cpp
298 sp-fedisplacementmap-fns.h
299 sp-fedisplacementmap.h
300 sp-fedistantlight.cpp
301 sp-fedistantlight.h
302 sp-feflood.cpp
303 sp-feflood-fns.h
304 sp-feflood.h
305 sp-feimage.cpp
306 sp-feimage-fns.h
307 sp-feimage.h
308 sp-femerge.cpp
309 sp-femerge-fns.h
310 sp-femerge.h
311 sp-femergenode.cpp
312 sp-femergenode.h
313 sp-femorphology.cpp
314 sp-femorphology-fns.h
315 sp-femorphology.h
316 sp-feoffset.cpp
317 sp-feoffset-fns.h
318 sp-feoffset.h
319 sp-fepointlight.cpp
320 sp-fepointlight.h
321 sp-fespecularlighting.cpp
322 sp-fespecularlighting-fns.h
323 sp-fespecularlighting.h
324 sp-fespotlight.cpp
325 sp-fespotlight.h
326 sp-fetile.cpp
327 sp-fetile-fns.h
328 sp-fetile.h
329 sp-feturbulence.cpp
330 sp-feturbulence-fns.h
331 sp-feturbulence.h
332 sp-filter.cpp
333 sp-filter-fns.h
334 sp-filter.h
335 sp-filter-primitive.cpp
336 sp-filter-primitive.h
337 sp-filter-reference.cpp
338 sp-filter-reference.h
339 sp-filter-units.h
340 sp-flowdiv.cpp
341 sp-flowdiv.h
342 sp-flowregion.cpp
343 sp-flowregion.h
344 sp-flowtext.cpp
345 sp-flowtext.h
346 sp-font.cpp
347 sp-font.h
348 sp-gaussian-blur.cpp
349 sp-gaussian-blur-fns.h
350 sp-gaussian-blur.h
351 sp-glyph.cpp
352 sp-glyph.h
353 sp-gradient.cpp
354 sp-gradient-fns.h
355 sp-gradient.h
356 sp-gradient-reference.cpp
357 sp-gradient-reference.h
358 sp-gradient-spread.h
359 #sp-gradient-test.h
360 sp-gradient-units.h
361 sp-gradient-vector.h
362 sp-guide-attachment.h
363 sp-guide-constraint.h
364 sp-guide.cpp
365 sp-guide.h
366 sp-image.cpp
367 sp-image.h
368 spiral-context.cpp
369 spiral-context.h
370 sp-item.cpp
371 sp-item-group.cpp
372 sp-item-group.h
373 sp-item.h
374 sp-item-notify-moveto.cpp
375 sp-item-notify-moveto.h
376 sp-item-rm-unsatisfied-cns.cpp
377 sp-item-rm-unsatisfied-cns.h
378 sp-item-transform.cpp
379 sp-item-transform.h
380 sp-item-update-cns.cpp
381 sp-item-update-cns.h
382 sp-linear-gradient-fns.h
383 sp-linear-gradient.h
384 sp-line.cpp
385 sp-line.h
386 splivarot.cpp
387 splivarot.h
388 sp-lpe-item.cpp
389 sp-lpe-item.h
390 sp-marker-loc.h
391 sp-mask.cpp
392 sp-mask.h
393 sp-metadata.cpp
394 sp-metadata.h
395 sp-metric.h
396 sp-metrics.cpp
397 sp-metrics.h
398 sp-missing-glyph.cpp
399 sp-missing-glyph.h
400 sp-namedview.cpp
401 sp-namedview.h
402 sp-object.cpp
403 sp-object-group.cpp
404 sp-object-group.h
405 sp-object.h
406 sp-object-repr.cpp
407 sp-object-repr.h
408 sp-offset.cpp
409 sp-offset.h
410 sp-paint-server.cpp
411 sp-paint-server.h
412 sp-path.cpp
413 sp-path.h
414 sp-pattern.cpp
415 sp-pattern.h
416 sp-polygon.cpp
417 sp-polygon.h
418 sp-polyline.cpp
419 sp-polyline.h
420 sp-radial-gradient-fns.h
421 sp-radial-gradient.h
422 sp-rect.cpp
423 sp-rect.h
424 sp-root.cpp
425 sp-root.h
426 sp-shape.cpp
427 sp-shape.h
428 sp-skeleton.cpp
429 sp-skeleton.h
430 sp-spiral.cpp
431 sp-spiral.h
432 sp-star.cpp
433 sp-star.h
434 sp-stop-fns.h
435 sp-stop.h
436 sp-string.cpp
437 sp-string.h
438 sp-style-elem.cpp
439 sp-style-elem.h
440 #sp-style-elem-test.h
441 sp-switch.cpp
442 sp-switch.h
443 sp-symbol.cpp
444 sp-symbol.h
445 sp-text.cpp
446 sp-text.h
447 sp-textpath.h
448 sp-tref.cpp
449 sp-tref.h
450 sp-tref-reference.cpp
451 sp-tref-reference.h
452 sp-tspan.cpp
453 sp-tspan.h
454 sp-use.cpp
455 sp-use.h
456 sp-use-reference.cpp
457 sp-use-reference.h
458 star-context.cpp
459 star-context.h
460 streams-gzip.cpp
461 streams-gzip.h
462 streams-handles.cpp
463 streams-handles.h
464 streams-jar.cpp
465 streams-jar.h
466 streams-zlib.cpp
467 streams-zlib.h
468 streq.h
469 strneq.h
470 style.cpp
471 style.h
472 #style-test.cpp
473 #style-test.h
474 svg-profile.h
475 svg-view.cpp
476 svg-view.h
477 svg-view-widget.cpp
478 svg-view-widget.h
479 syseq.h
480 #test-helpers.h
481 text-chemistry.cpp
482 text-chemistry.h
483 text-context.cpp
484 text-context.h
485 text-editing.cpp
486 text-editing.h
487 text-tag-attributes.h
488 tools-switch.cpp
489 tools-switch.h
490 transf_mat_3x4.cpp
491 transf_mat_3x4.h
492 TRPIFormatter.h
493 tweak-context.cpp
494 tweak-context.h
495 undo-stack-observer.h
496 unit-constants.h
497 uri.cpp
498 uri.h
499 uri-references.cpp
500 uri-references.h
501 vanishing-point.cpp
502 vanishing-point.h
503 verbs.cpp
504 verbs.h
505 #verbs-test.h
506 version.cpp
507 version.h
508 zoom-context.cpp
509 zoom-context.h\r
510 ${ONLY_WIN}\r
511 )\r
512 # All folder with CMakeLists.txt files (excluding internal libraries)\r
513 SET(srcfolders\r
514 algorithms\r
515 api\r
516 bind\r
517 debug
518 dialogs\r
519 display\r
520 dom\r
521 dom/io\r
522 dom/odf\r
523 dom/util\r
524 #dom/work\r
525 extension\r
526 #extension/dxf2svg\r
527 extension/implementation\r
528 extension/internal\r
529 extension/param\r
530 graphlayout\r
531 helper\r
532 inkjar\r
533 io\r
534 jabber_whiteboard\r
535 jabber_whiteboard/dialog\r
536 live_effects\r
537 live_effects/parameter\r
538 pedro\r
539 removeoverlap\r
540 svg\r
541 trace\r
542 trace/potrace\r
543 traits\r
544 ui/cache\r
545 ui\r
546 ui/dialog\r
547 ui/view\r
548 ui/widget\r
549 #utest\r
550 util\r
551 widgets\r
552 xml\r
553 )\r
554 \r
555 # 1) include each list file\r
556 # 2) grab the variable inside \r
557 # 3) prepend the full relative path to each file in list\r
558 # 4) append the list to INKSCAPE_SRC\r
559 FOREACH(dirlist ${srcfolders})\r
560   SET(_temp_dirlist "${dirlist}")\r
561   MESSAGE(STATUS "Processing ${CMAKE_CURRENT_SOURCE_DIR}/${dirlist}/CMakeLists.txt")\r
562   INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/${dirlist}/CMakeLists.txt)\r
563   SANITIZE_PATH(dirlist)\r
564   PREPEND(${dirlist}_SRC "${_temp_dirlist}/")\r
565   SET(INKSCAPE_SRC ${INKSCAPE_SRC} ${${dirlist}_SRC})\r
566 ENDFOREACH(dirlist)\r
567 \r
568 \r
569 # All directories containing lists files that describe building internal libraries\r
570 SET(libfolders
571 2geom\r
572 application\r
573 #dialogs\r
574 libavoid\r
575 libcola\r
576 libcroco\r
577 libgdl\r
578 libnr\r
579 libnrtype\r
580 libvpsc
581 livarot\r
582 )\r
583 \r
584 FOREACH(dirlist ${libfolders})\r
585   ADD_SUBDIRECTORY(${dirlist})\r
586 ENDFOREACH(dirlist)\r
587 \r
588 \r
589 # make executable for INKSCAPE\r
590 ADD_EXECUTABLE(inkscape ${INKSCAPE_SRC})\r
591 TARGET_LINK_LIBRARIES(inkscape\r
592         "${INKSCAPE_LINK_FLAGS}" 2geom avoid cola croco gdl nr nrtype vpsc livarot\r
595 # make executable for INKVIEW
596 #ADD_EXECUTABLE(inkview inkview.cpp)
597 #TARGET_LINK_LIBRARIES(inkview\r
598 #       "${INKSCAPE_LINK_FLAGS}" 2geom avoid cola croco gdl nr nrtype vpsc livarot\r
599 #)\r