Code

* src/2geom/isnan.h, src/libcola/cola.cpp, src/style.cpp, src/seltrans.cpp,
[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 isnormal.h
353 jabber_whiteboard
354 knot.cpp
355 knot-enums.h
356 knot.h
357 knotholder.cpp
358 knot-holder-entity.h
359 knot-holder-entity.cpp
360 knotholder.h
361 layer-fns.cpp
362 layer-fns.h
363 layer-manager.cpp
364 layer-manager.h
365 line-geometry.cpp
366 line-geometry.h
367 line-snapper.cpp
368 line-snapper.h
369 macros.h
370 main-cmdlineact.cpp
371 main-cmdlineact.h
372 main.cpp
373 marker.cpp
374 marker.h
375 media.cpp
376 media.h
377 memeq.h
378 menus-skeleton.h
379 message-context.cpp
380 message-context.h
381 message.h
382 message-stack.cpp
383 message-stack.h
384 mod360.cpp
385 mod360.h
386 #mod360-test.h
387 modifier-fns.h
388 MultiPrinter.h
389 node-context.cpp
390 node-context.h
391 nodepath.cpp
392 nodepath.h
393 number-opt-number.h
394 object-edit.cpp
395 object-edit.h
396 object-hierarchy.cpp
397 object-hierarchy.h
398 object-snapper.cpp
399 object-snapper.h
400 path-chemistry.cpp
401 path-chemistry.h
402 path-prefix.h
403 pencil-context.cpp
404 pencil-context.h
405 pen-context.cpp
406 pen-context.h
407 persp3d.cpp
408 persp3d.h
409 persp3d-reference.cpp
410 persp3d-reference.h
411 perspective-line.cpp
412 perspective-line.h
413 plugin.def
414 preferences.cpp
415 preferences.h
416 preferences-skeleton.h
417 prefix.cpp
418 prefix.h
419 prefs-utils.cpp
420 prefs-utils.h
421 print.cpp
422 print.h
423 profile-manager.cpp
424 profile-manager.h
425 proj_pt.cpp
426 proj_pt.h
427 PylogFormatter.h
428 rect-context.cpp
429 rect-context.h
430 remove-last.h
431 require-config.h
432 round.h
433 #round-test.h
434 rubberband.cpp
435 rubberband.h
436 satisfied-guide-cns.cpp
437 satisfied-guide-cns.h
438 selcue.cpp
439 selcue.h
440 select-context.cpp
441 select-context.h
442 selection-chemistry.cpp
443 selection-chemistry.h
444 selection.cpp
445 selection-describer.cpp
446 selection-describer.h
447 selection.h
448 #selfname.tpl
449 seltrans.cpp
450 seltrans.h
451 seltrans-handles.cpp
452 seltrans-handles.h
453 shape-editor.cpp
454 shape-editor.h
455 shortcuts.cpp
456 shortcuts.h
457 snap.cpp
458 snap.h
459 snapped-line.cpp
460 snapped-line.h
461 snapped-point.cpp
462 snapped-point.h
463 snapper.cpp
464 snapper.h
465 star-context.cpp
466 star-context.h
467 streams-gzip.cpp
468 streams-gzip.h
469 streams-handles.cpp
470 streams-handles.h
471 streams-jar.cpp
472 streams-jar.h
473 streams-zlib.cpp
474 streams-zlib.h
475 streq.h
476 strneq.h
477 style.cpp
478 style.h
479 #style-test.cpp
480 #style-test.h
481 svg-profile.h
482 svg-view.cpp
483 svg-view.h
484 svg-view-widget.cpp
485 svg-view-widget.h
486 syseq.h
487 #test-helpers.h
488 text-chemistry.cpp
489 text-chemistry.h
490 text-context.cpp
491 text-context.h
492 text-editing.cpp
493 text-editing.h
494 text-tag-attributes.h
495 tools-switch.cpp
496 tools-switch.h
497 transf_mat_3x4.cpp
498 transf_mat_3x4.h
499 TRPIFormatter.h
500 tweak-context.cpp
501 tweak-context.h
502 undo-stack-observer.h
503 unit-constants.h
504 uri.cpp
505 uri.h
506 uri-references.cpp
507 uri-references.h
508 vanishing-point.cpp
509 vanishing-point.h
510 verbs.cpp
511 verbs.h
512 #verbs-test.h
513 version.cpp
514 version.h
515 zoom-context.cpp
516 zoom-context.h\r
517 ${ONLY_WIN}\r
518 )\r
519 # All folder with CMakeLists.txt files (excluding internal libraries)\r
520 SET(srcfolders\r
521 algorithms\r
522 api
523 application\r
524 bind\r
525 debug
526 dialogs\r
527 display\r
528 dom\r
529 dom/io\r
530 dom/odf\r
531 dom/util\r
532 #dom/work\r
533 extension\r
534 #extension/dxf2svg\r
535 extension/implementation\r
536 extension/internal
537 extension/internal/bitmap
538 extension/internal/filter
539 extension/internal/pdfinput\r
540 extension/param
541 extension/script\r
542 graphlayout\r
543 helper\r
544 inkjar\r
545 io\r
546 jabber_whiteboard\r
547 jabber_whiteboard/dialog\r
548 live_effects\r
549 live_effects/parameter\r
550 pedro\r
551 removeoverlap\r
552 svg\r
553 trace\r
554 trace/potrace\r
555 traits\r
556 ui/cache\r
557 ui\r
558 ui/dialog\r
559 ui/view\r
560 ui/widget\r
561 #utest\r
562 util\r
563 widgets\r
564 xml\r
565 )\r
566 \r
567 # 1) include each list file\r
568 # 2) grab the variable inside \r
569 # 3) prepend the full relative path to each file in list\r
570 # 4) append the list to INKSCAPE_SRC\r
571 FOREACH(dirlist ${srcfolders})\r
572   SET(_temp_dirlist "${dirlist}")\r
573   MESSAGE(STATUS "Processing ${CMAKE_CURRENT_SOURCE_DIR}/${dirlist}/CMakeLists.txt")\r
574   INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/${dirlist}/CMakeLists.txt)\r
575   SANITIZE_PATH(dirlist)\r
576   PREPEND(${dirlist}_SRC "${_temp_dirlist}/")\r
577   SET(INKSCAPE_SRC ${INKSCAPE_SRC} ${${dirlist}_SRC})\r
578 ENDFOREACH(dirlist)\r
579 \r
580 SET(INKSCAPE_SRC ${INKSCAPE_SRC} ${GlibOutput})\r
581 # All directories containing lists files that describe building internal libraries\r
582 SET(libfolders
583 2geom\r
584 libavoid\r
585 libcola\r
586 libcroco\r
587 libgdl\r
588 libnr\r
589 libnrtype\r
590 libvpsc
591 livarot\r
592 )\r
593 \r
594 FOREACH(dirlistsrc ${libfolders})\r
595   ADD_SUBDIRECTORY(${dirlistsrc})\r
596 ENDFOREACH(dirlistsrc)\r
599 ADD_LIBRARY(sp STATIC ${SP_SRC})\r
600 \r
601 # make executable for INKSCAPE\r
602 ADD_EXECUTABLE(inkscape ${INKSCAPE_SRC})\r
603 TARGET_LINK_LIBRARIES(inkscape\r
604         "${INKSCAPE_LIBS}" 2geom avoid cola croco gdl nr nrtype vpsc livarot sp\r
607 # make executable for INKVIEW
608 #ADD_EXECUTABLE(inkview inkview.cpp)
609 #TARGET_LINK_LIBRARIES(inkview\r
610 #       "${INKSCAPE_LINK_FLAGS}" 2geom avoid cola croco gdl nr nrtype vpsc livarot sp\r
611 #)\r