Code

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