Code

Refactoring the object-snapper to use 2geom paths
[inkscape.git] / src / CMakeLists.txt
1 IF(WIN32)\r
2     SET(ONLY_WIN\r
3     registrytool.cpp\r
4     #deptool.cpp
5     winmain.cpp)\r
6 ELSEIF(WIN32)\r
7     SET(ONLY_WIN)\r
8 ENDIF(WIN32)\r
9 SET(SP_SRC
10 sp-anchor.cpp
11 sp-animation.cpp
12 sp-clippath.cpp
13 sp-conn-end.cpp
14 sp-conn-end-pair.cpp
15 sp-cursor.cpp
16 sp-defs.cpp
17 sp-ellipse.cpp
18 sp-feblend.cpp
19 sp-fecolormatrix.cpp
20 sp-fecomponenttransfer.cpp
21 sp-fecomponenttransfer-funcnode.cpp
22 sp-fecomposite.cpp
23 sp-feconvolvematrix.cpp
24 sp-fediffuselighting.cpp
25 sp-fedisplacementmap.cpp
26 sp-fedistantlight.cpp
27 sp-feflood.cpp
28 sp-feimage.cpp
29 sp-femerge.cpp
30 sp-femergenode.cpp
31 sp-femorphology.cpp
32 sp-feoffset.cpp
33 sp-fepointlight.cpp
34 sp-fespecularlighting.cpp
35 sp-fespotlight.cpp
36 sp-fetile.cpp
37 sp-feturbulence.cpp
38 sp-filter.cpp
39 sp-filter-primitive.cpp
40 sp-filter-reference.cpp
41 sp-flowdiv.cpp
42 sp-flowregion.cpp
43 sp-flowtext.cpp
44 sp-font.cpp
45 sp-font-face.cpp
46 sp-gaussian-blur.cpp
47 sp-glyph.cpp
48 sp-gradient.cpp
49 sp-gradient-reference.cpp
50 sp-guide.cpp
51 sp-glyph-kerning.cpp
52 sp-image.cpp
53 spiral-context.cpp
54 sp-item.cpp
55 sp-item-group.cpp
56 sp-item-notify-moveto.cpp
57 sp-item-rm-unsatisfied-cns.cpp
58 sp-item-transform.cpp
59 sp-item-update-cns.cpp
60 sp-line.cpp
61 splivarot.cpp
62 sp-lpe-item.cpp
63 sp-mask.cpp
64 sp-metadata.cpp
65 sp-metrics.cpp
66 sp-missing-glyph.cpp
67 sp-namedview.cpp
68 sp-object.cpp
69 sp-object-group.cpp
70 sp-object-repr.cpp
71 sp-offset.cpp
72 sp-paint-server.cpp
73 sp-path.cpp
74 sp-pattern.cpp
75 sp-polygon.cpp
76 sp-polyline.cpp
77 sp-rect.cpp
78 sp-root.cpp
79 sp-shape.cpp
80 sp-skeleton.cpp
81 sp-spiral.cpp
82 sp-star.cpp
83 sp-string.cpp
84 sp-style-elem.cpp
85 sp-switch.cpp
86 sp-symbol.cpp
87 sp-text.cpp
88 sp-tref.cpp
89 sp-tref-reference.cpp
90 sp-tspan.cpp
91 sp-use.cpp
92 sp-use-reference.cpp
93 )
94 \r
95 SET(INKSCAPE_SRC\r
96 arc-context.cpp
97 attributes.cpp
98 axis-manip.cpp
99 box3d-context.cpp
100 box3d.cpp
101 box3d-side.cpp
102 color.cpp
103 color-profile.cpp
104 composite-undo-stack-observer.cpp
105 common-context.cpp
106 conditions.cpp
107 conn-avoid-ref.cpp
108 connector-context.cpp
109 console-output-undo-observer.cpp
110 context-fns.cpp
111 #deptool.cpp
112 desktop-affine.cpp
113 desktop.cpp
114 desktop-events.cpp
115 desktop-handles.cpp
116 desktop-style.cpp
117 device-manager.cpp
118 dir-util.cpp
119 document.cpp
120 document-subset.cpp
121 document-undo.cpp
122 doxygen-main.cpp
123 draw-anchor.cpp
124 draw-context.cpp
125 dropper-context.cpp
126 dyna-draw-context.cpp
127 ege-adjustment-action.cpp
128 ege-color-prof-tracker.cpp
129 ege-output-action.cpp
130 ege-select-one-action.cpp
131 eraser-context.cpp
132 event-context.cpp
133 event-log.cpp
134 extension
135 extract-uri.cpp
136 file.cpp
137 filter-chemistry.cpp
138 filter-enums.cpp
139 fixes.cpp
140 flood-context.cpp
141 fontsize-expansion.cpp
142 gc-anchored.cpp
143 gc.cpp
144 gc-finalized.cpp
145 gradient-chemistry.cpp
146 gradient-context.cpp
147 gradient-drag.cpp
148 guide-snapper.cpp
149 help.cpp
150 id-clash.cpp
151 ige-mac-menu.c
152 ink-action.cpp
153 inkscape.cpp
154 inkscape.rc
155 inkscape-stock.cpp
156 interface.cpp
157 knot.cpp
158 knotholder.cpp
159 knot-holder-entity.cpp
160 layer-fns.cpp
161 layer-manager.cpp
162 line-geometry.cpp
163 line-snapper.cpp
164 main-cmdlineact.cpp
165 main.cpp
166 marker.cpp
167 media.cpp
168 message-context.cpp
169 message-stack.cpp
170 mod360.cpp
171 node-context.cpp
172 nodepath.cpp
173 object-edit.cpp
174 object-hierarchy.cpp
175 object-snapper.cpp
176 path-chemistry.cpp
177 pencil-context.cpp
178 pen-context.cpp
179 persp3d.cpp
180 persp3d-reference.cpp
181 perspective-line.cpp
182 plugin.def
183 preferences.cpp
184 prefix.cpp
185 prefs-utils.cpp
186 print.cpp
187 profile-manager.cpp
188 proj_pt.cpp
189 rect-context.cpp
190 rubberband.cpp
191 satisfied-guide-cns.cpp
192 selcue.cpp
193 select-context.cpp
194 selection-chemistry.cpp
195 selection.cpp
196 selection-describer.cpp
197 #selfname.tpl
198 seltrans.cpp
199 seltrans-handles.cpp
200 shape-editor.cpp
201 shortcuts.cpp
202 snap.cpp
203 snapped-line.cpp
204 snapped-point.cpp
205 snapper.cpp
206 star-context.cpp
207 streams-gzip.cpp
208 streams-handles.cpp
209 streams-jar.cpp
210 streams-zlib.cpp
211 style.cpp
212 #style-test.cpp
213 svg-view.cpp
214 svg-view-widget.cpp
215 text-chemistry.cpp
216 text-context.cpp
217 text-editing.cpp
218 tools-switch.cpp
219 transf_mat_3x4.cpp
220 tweak-context.cpp
221 uri.cpp
222 uri-references.cpp
223 vanishing-point.cpp
224 verbs.cpp
225 version.cpp
226 zoom-context.cpp\r
227 ${ONLY_WIN}\r
228 )\r
229 # All folder with CMakeLists.txt files (excluding internal libraries)\r
230 SET(srcfolders\r
231 algorithms\r
232 api
233 application\r
234 bind\r
235 debug
236 dialogs\r
237 display\r
238 dom\r
239 dom/io\r
240 dom/odf\r
241 dom/util\r
242 #dom/work\r
243 extension\r
244 #extension/dxf2svg\r
245 extension/implementation\r
246 extension/internal
247 extension/internal/bitmap
248 extension/internal/filter
249 extension/internal/pdfinput\r
250 extension/param
251 extension/script\r
252 graphlayout\r
253 helper\r
254 inkjar\r
255 io\r
256 jabber_whiteboard\r
257 jabber_whiteboard/dialog\r
258 live_effects\r
259 live_effects/parameter\r
260 pedro\r
261 removeoverlap\r
262 svg\r
263 trace\r
264 trace/potrace\r
265 traits\r
266 ui/cache\r
267 ui\r
268 ui/dialog\r
269 ui/view\r
270 ui/widget\r
271 #utest\r
272 util\r
273 widgets\r
274 xml\r
275 )\r
276 \r
277 # 1) include each list file\r
278 # 2) grab the variable inside \r
279 # 3) prepend the full relative path to each file in list\r
280 # 4) append the list to INKSCAPE_SRC\r
281 FOREACH(dirlist ${srcfolders})\r
282   SET(_temp_dirlist "${dirlist}")\r
283   MESSAGE(STATUS "Processing ${CMAKE_CURRENT_SOURCE_DIR}/${dirlist}/CMakeLists.txt")\r
284   INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/${dirlist}/CMakeLists.txt)\r
285   SANITIZE_PATH(dirlist)\r
286   PREPEND(${dirlist}_SRC "${_temp_dirlist}/")\r
287   SET(INKSCAPE_SRC ${INKSCAPE_SRC} ${${dirlist}_SRC})\r
288 ENDFOREACH(dirlist)\r
289 \r
290 SET(INKSCAPE_SRC ${INKSCAPE_SRC} ${GlibOutput})\r
291 # All directories containing lists files that describe building internal libraries\r
292 SET(libfolders
293 2geom\r
294 libavoid\r
295 libcola\r
296 libcroco\r
297 libgdl\r
298 libnr\r
299 libnrtype\r
300 libvpsc
301 livarot\r
302 )\r
303 \r
304 FOREACH(dirlistsrc ${libfolders})\r
305   ADD_SUBDIRECTORY(${dirlistsrc})\r
306 ENDFOREACH(dirlistsrc)\r
308 message(status "${INKSCAPE_LIBS}")
309 ADD_LIBRARY(sp STATIC ${SP_SRC})\r
310 TARGET_LINK_LIBRARIES(sp \r
311          2geom avoid cola croco gdl nr nrtype vpsc livarot\r
312 )\r
313 # make executable for INKSCAPE\r
314 ADD_EXECUTABLE(inkscape ${INKSCAPE_SRC})\r
315 TARGET_LINK_LIBRARIES(inkscape\r
316          2geom avoid cola croco gdl nr nrtype vpsc livarot sp\r
319 # make executable for INKVIEW
320 #ADD_EXECUTABLE(inkview inkview.cpp)
321 #TARGET_LINK_LIBRARIES(inkview\r
322 #       "${INKSCAPE_LINK_FLAGS}" 2geom avoid cola croco gdl nr nrtype vpsc livarot sp\r
323 #)\r