Code

Cmake: Added internal link libraries
[inkscape.git] / src / CMakeLists.txt
1 IF(WIN32)
2 SET(ONLY_WIN
3 registrytool.cpp
4 deptool.cpp)
5 ELSEIF(WIN32)
6 SET(ONLY_WIN)
7 ENDIF(WIN32)
9 SET(INKSCAPE_SRC
10 arc-context.cpp
11 attributes.cpp
12 axis-manip.cpp
13 box3d-context.cpp
14 box3d.cpp
15 box3d-side.cpp
16 color.cpp
17 color-profile.cpp
18 composite-undo-stack-observer.cpp
19 conditions.cpp
20 conn-avoid-ref.cpp
21 connector-context.cpp
22 console-output-undo-observer.cpp
23 context-fns.cpp
24 desktop-affine.cpp
25 desktop.cpp
26 desktop-events.cpp
27 desktop-handles.cpp
28 desktop-style.cpp
29 dir-util.cpp
30 document.cpp
31 document-subset.cpp
32 document-undo.cpp
33 doxygen-main.cpp
34 draw-anchor.cpp
35 draw-context.cpp
36 dropper-context.cpp
37 dyna-draw-context.cpp
38 ege-adjustment-action.cpp
39 ege-color-prof-tracker.cpp
40 ege-output-action.cpp
41 ege-select-one-action.cpp
42 event-context.cpp
43 event-log.cpp
44 extract-uri.cpp
45 file.cpp
46 filter-chemistry.cpp
47 filter-enums.cpp
48 fixes.cpp
49 flood-context.cpp
50 fontsize-expansion.cpp
51 gc-anchored.cpp
52 gc.cpp
53 gc-finalized.cpp
54 gradient-chemistry.cpp
55 gradient-context.cpp
56 gradient-drag.cpp
57 guide-snapper.cpp
58 help.cpp
59 ink-action.cpp
60 inkscape.cpp
61 inkscape-stock.cpp
62 ##inkview is another executable file
63 ##needs to be separated as a second target
64 #inkview.cpp
65 interface.cpp
66 knot.cpp
67 knotholder.cpp
68 layer-fns.cpp
69 layer-manager.cpp
70 line-geometry.cpp
71 line-snapper.cpp
72 main-cmdlineact.cpp
73 main.cpp
74 marker.cpp
75 media.cpp
76 message-context.cpp
77 message-stack.cpp
78 mod360.cpp
79 node-context.cpp
80 nodepath.cpp
81 object-edit.cpp
82 object-hierarchy.cpp
83 object-snapper.cpp
84 path-chemistry.cpp
85 pencil-context.cpp
86 pen-context.cpp
87 persp3d.cpp
88 persp3d-reference.cpp
89 perspective-line.cpp
90 preferences.cpp
91 prefix.cpp
92 prefs-utils.cpp
93 print.cpp
94 profile-manager.cpp
95 proj_pt.cpp
96 rect-context.cpp
97 rubberband.cpp
98 satisfied-guide-cns.cpp
99 selcue.cpp
100 select-context.cpp
101 selection-chemistry.cpp
102 selection.cpp
103 selection-describer.cpp
104 seltrans.cpp
105 seltrans-handles.cpp
106 shape-editor.cpp
107 shortcuts.cpp
108 snap.cpp
109 snapped-line.cpp
110 snapped-point.cpp
111 snapper.cpp
112 sp-anchor.cpp
113 sp-animation.cpp
114 sp-clippath.cpp
115 sp-conn-end.cpp
116 sp-conn-end-pair.cpp
117 sp-cursor.cpp
118 sp-defs.cpp
119 sp-ellipse.cpp
120 sp-feblend.cpp
121 sp-fecolormatrix.cpp
122 sp-fecomponenttransfer.cpp
123 sp-fecomposite.cpp
124 sp-feconvolvematrix.cpp
125 sp-fediffuselighting.cpp
126 sp-fedisplacementmap.cpp
127 sp-fedistantlight.cpp
128 sp-feflood.cpp
129 sp-feimage.cpp
130 sp-femerge.cpp
131 sp-femergenode.cpp
132 sp-femorphology.cpp
133 sp-feoffset.cpp
134 sp-fepointlight.cpp
135 sp-fespecularlighting.cpp
136 sp-fespotlight.cpp
137 sp-fetile.cpp
138 sp-feturbulence.cpp
139 sp-filter.cpp
140 sp-filter-primitive.cpp
141 sp-filter-reference.cpp
142 sp-flowdiv.cpp
143 sp-flowregion.cpp
144 sp-flowtext.cpp
145 sp-gaussian-blur.cpp
146 sp-gradient.cpp
147 sp-gradient-reference.cpp
148 sp-guide.cpp
149 sp-image.cpp
150 spiral-context.cpp
151 sp-item.cpp
152 sp-item-group.cpp
153 sp-item-notify-moveto.cpp
154 sp-item-rm-unsatisfied-cns.cpp
155 sp-item-transform.cpp
156 sp-item-update-cns.cpp
157 sp-line.cpp
158 splivarot.cpp
159 sp-mask.cpp
160 sp-metadata.cpp
161 sp-metrics.cpp
162 sp-namedview.cpp
163 sp-object.cpp
164 sp-object-group.cpp
165 sp-object-repr.cpp
166 sp-offset.cpp
167 sp-paint-server.cpp
168 sp-path.cpp
169 sp-pattern.cpp
170 sp-polygon.cpp
171 sp-polyline.cpp
172 sp-rect.cpp
173 sp-root.cpp
174 sp-shape.cpp
175 sp-skeleton.cpp
176 sp-spiral.cpp
177 sp-star.cpp
178 sp-string.cpp
179 sp-style-elem.cpp
180 sp-switch.cpp
181 sp-symbol.cpp
182 sp-text.cpp
183 sp-tref.cpp
184 sp-tref-reference.cpp
185 sp-tspan.cpp
186 sp-use.cpp
187 sp-use-reference.cpp
188 star-context.cpp
189 streams-gzip.cpp
190 streams-handles.cpp
191 streams-jar.cpp
192 streams-zlib.cpp
193 style.cpp
194 #style-test.cpp
195 svg-view.cpp
196 svg-view-widget.cpp
197 text-chemistry.cpp
198 text-context.cpp
199 text-editing.cpp
200 tools-switch.cpp
201 transf_mat_3x4.cpp
202 tweak-context.cpp
203 uri.cpp
204 uri-references.cpp
205 vanishing-point.cpp
206 verbs.cpp
207 version.cpp
208 winmain.cpp
209 zoom-context.cpp
210 ${ONLY_WIN}
211 ${algorithms}
212 ${api}
213 ${application}
214 ${BIND_SRC}
215 ${debug}
216 ${dialogs}
217 ${display}
218 ${dom_SRC}
219 ${extension_SRC}
220 ${graphlayout_SRC}
221 ${extension_SRC}
222 ${helper_SRC}
223 ${inkjar_SRC}
224 ${io_SRC}
225 ${jabber_whiteboard_SRC}
226 ${live_effects_SRC}
227 ${removeoverlap_SRC}
228 ${svg_SRC}
229 ${trace_SRC}
230 ${traits_SRC}
231 ${ui_SRC}
232 #${utest_SRC}
233 #${util_SRC}
234 #${widgets_SRC}
235 #${xml_SRC}
238 # make executable for INKSCAPE
239 ADD_EXECUTABLE(inkscape ${INKSCAPE_SRC})
240 TARGET_LINK_LIBRARIES(inkscape
241         "${INKSCAPE_LINK_FLAGS}" avoid cola croco gdl nr nrtype vpsc
243 #INSTALL(TARGETS INKSCAPE
244 #  RUNTIME DESTINATION bin
245 #  LIBRARY DESTINATION lib
246 #  ARCHIVE DESTINATION lib
247 #)
249 #FILE(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
250 #INSTALL(FILES ${files} DESTINATION include/INKSCAPE/INKSCAPE)
252 #CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/INKSCAPE.pc.in
253 #                ${CMAKE_BINARY_DIR}/INKSCAPE.pc @ONLY IMMEDIATE )
254 #INSTALL(FILES "${CMAKE_BINARY_DIR}/INKSCAPE.pc" DESTINATION lib/pkgconfig)
257 # Add New folders in src folder here
258 SET(srcfolders
259 2geom
260 algorithms
261 api
262 application
263 bind
264 debug
265 dialogs
266 display
267 dom
268 extension
269 graphlayout
270 helper
271 inkjar
272 io
273 jabber_whiteboard
274 libavoid
275 libcola
276 libcroco
277 libgdl
278 libnr
279 libnrtype
280 libvpsc
281 livarot
282 live_effects
283 pedro
284 svg
285 pixmaps
286 trace
287 traits
288 ui
289 removeoverlap
290 utest
291 util
292 widgets
293 xml
295 \r
296 FOREACH(dirlist ${srcfolders})
297 ADD_SUBDIRECTORY(${dirlist})
298 ENDFOREACH(dirlist)