Code

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