move mesh evaluation functions (normal, mapping, smooth group... etc, calculations...
[blender.git] / source / blender / blenkernel / CMakeLists.txt
1 # ***** BEGIN GPL LICENSE BLOCK *****
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 #
17 # The Original Code is Copyright (C) 2006, Blender Foundation
18 # All rights reserved.
19 #
20 # The Original Code is: all of this file.
21 #
22 # Contributor(s): Jacques Beaurain.
23 #
24 # ***** END GPL LICENSE BLOCK *****
25
26 set(INC
27         .
28         ../blenfont
29         ../blenlib
30         ../blenloader
31         ../gpu
32         ../ikplugin
33         ../imbuf
34         ../makesdna
35         ../makesrna
36         ../bmesh
37         ../modifiers
38         ../nodes
39         ../render/extern/include
40         ../../../intern/guardedalloc
41         ../../../intern/iksolver/extern
42         ../../../intern/memutil
43         ../../../intern/mikktspace
44         ../../../intern/opennl/extern
45         ../../../intern/raskter
46         ../../../intern/smoke/extern
47         ../../../extern/libmv
48         ../../../intern/atomic
49
50         # XXX - BAD LEVEL CALL WM_api.h
51         ../windowmanager
52 )
53
54 set(INC_SYS
55         ${GLEW_INCLUDE_PATH}
56         ${ZLIB_INCLUDE_DIRS}
57 )
58
59 set(SRC
60         intern/CCGSubSurf.c
61         intern/DerivedMesh.c
62         intern/action.c
63         intern/addon.c
64         intern/anim.c
65         intern/anim_sys.c
66         intern/armature.c
67         intern/autoexec.c
68         intern/blender.c
69         intern/bmfont.c
70         intern/boids.c
71         intern/bpath.c
72         intern/brush.c
73         intern/bullet.c
74         intern/bvhutils.c
75         intern/camera.c
76         intern/cdderivedmesh.c
77         intern/cloth.c
78         intern/collision.c
79         intern/colortools.c
80         intern/constraint.c
81         intern/context.c
82         intern/curve.c
83         intern/customdata.c
84         intern/customdata_file.c
85         intern/deform.c
86         intern/depsgraph.c
87         intern/displist.c
88         intern/dynamicpaint.c
89         intern/editderivedmesh.c
90         intern/editmesh.c
91         intern/editmesh_bvh.c
92         intern/effect.c
93         intern/fcurve.c
94         intern/fluidsim.c
95         intern/fmodifier.c
96         intern/font.c
97         intern/freestyle.c
98         intern/gpencil.c
99         intern/group.c
100         intern/icons.c
101         intern/idcode.c
102         intern/idprop.c
103         intern/image.c
104         intern/image_gen.c
105         intern/implicit.c
106         intern/ipo.c
107         intern/key.c
108         intern/lamp.c
109         intern/lattice.c
110         intern/library.c
111         intern/linestyle.c
112         intern/mask.c
113         intern/mask_evaluate.c
114         intern/mask_rasterize.c
115         intern/material.c
116         intern/mball.c
117         intern/mesh.c
118         intern/mesh_evaluate.c
119         intern/mesh_validate.c
120         intern/modifier.c
121         intern/modifiers_bmesh.c
122         intern/movieclip.c
123         intern/multires.c
124         intern/nla.c
125         intern/node.c
126         intern/object.c
127         intern/object_deform.c
128         intern/ocean.c
129         intern/packedFile.c
130         intern/paint.c
131         intern/particle.c
132         intern/particle_system.c
133         intern/pbvh.c
134         intern/pbvh_bmesh.c
135         intern/pointcache.c
136         intern/property.c
137         intern/report.c
138         intern/rigidbody.c
139         intern/sca.c
140         intern/scene.c
141         intern/screen.c
142         intern/seqcache.c
143         intern/seqeffects.c
144         intern/seqmodifier.c
145         intern/sequencer.c
146         intern/shrinkwrap.c
147         intern/sketch.c
148         intern/smoke.c
149         intern/softbody.c
150         intern/sound.c
151         intern/speaker.c
152         intern/subsurf_ccg.c
153         intern/suggestions.c
154         intern/text.c
155         intern/texture.c
156         intern/tracking.c
157         intern/treehash.c
158         intern/unit.c
159         intern/world.c
160         intern/writeavi.c
161         intern/writeframeserver.c
162
163         BKE_DerivedMesh.h
164         BKE_action.h
165         BKE_addon.h
166         BKE_anim.h
167         BKE_animsys.h
168         BKE_armature.h
169         BKE_autoexec.h
170         BKE_blender.h
171         BKE_bmfont.h
172         BKE_bmfont_types.h
173         BKE_boids.h
174         BKE_bpath.h
175         BKE_brush.h
176         BKE_bullet.h
177         BKE_bvhutils.h
178         BKE_camera.h
179         BKE_ccg.h
180         BKE_cdderivedmesh.h
181         BKE_cloth.h
182         BKE_collision.h
183         BKE_colortools.h
184         BKE_constraint.h
185         BKE_context.h
186         BKE_curve.h
187         BKE_customdata.h
188         BKE_customdata_file.h
189         BKE_deform.h
190         BKE_depsgraph.h
191         BKE_displist.h
192         BKE_dynamicpaint.h
193         BKE_effect.h
194         BKE_fcurve.h
195         BKE_fluidsim.h
196         BKE_font.h
197         BKE_freestyle.h
198         BKE_global.h
199         BKE_gpencil.h
200         BKE_group.h
201         BKE_icons.h
202         BKE_idcode.h
203         BKE_idprop.h
204         BKE_image.h
205         BKE_ipo.h
206         BKE_key.h
207         BKE_lamp.h
208         BKE_lattice.h
209         BKE_library.h
210         BKE_linestyle.h
211         BKE_main.h
212         BKE_mask.h
213         BKE_material.h
214         BKE_mball.h
215         BKE_mesh.h
216         BKE_modifier.h
217         BKE_movieclip.h
218         BKE_multires.h
219         BKE_nla.h
220         BKE_node.h
221         BKE_object.h
222         BKE_object_deform.h
223         BKE_ocean.h
224         BKE_packedFile.h
225         BKE_paint.h
226         BKE_particle.h
227         BKE_pbvh.h
228         BKE_pointcache.h
229         BKE_property.h
230         BKE_report.h
231         BKE_rigidbody.h
232         BKE_sca.h
233         BKE_scene.h
234         BKE_screen.h
235         BKE_sequencer.h
236         BKE_shrinkwrap.h
237         BKE_sketch.h
238         BKE_smoke.h
239         BKE_softbody.h
240         BKE_sound.h
241         BKE_speaker.h
242         BKE_subsurf.h
243         BKE_suggestions.h
244         BKE_editmesh.h
245         BKE_editmesh_bvh.h
246         BKE_text.h
247         BKE_texture.h
248         BKE_tracking.h
249         BKE_treehash.h
250         BKE_unit.h
251         BKE_utildefines.h
252         BKE_world.h
253         BKE_writeavi.h
254         BKE_writeframeserver.h
255
256         depsgraph_private.h
257         nla_private.h
258         intern/CCGSubSurf.h
259         intern/pbvh_intern.h
260 )
261
262 add_definitions(-DGLEW_STATIC)
263
264 if(WITH_AUDASPACE)
265         list(APPEND INC
266                 ../../../intern/audaspace/intern
267         )
268         add_definitions(-DWITH_AUDASPACE)
269 endif()
270
271 if(WITH_BULLET)
272         list(APPEND INC_SYS
273                 ${BULLET_INCLUDE_DIRS}
274         )
275         list(APPEND INC
276                 ../../../intern/rigidbody
277         )
278         add_definitions(-DWITH_BULLET)
279 endif()
280
281 #if(WITH_MOD_CLOTH_ELTOPO)
282 #       list(APPEND INC
283 #               ../../../extern/eltopo
284 #               ../../../extern/eltopo/eltopo3d
285 #       )
286 #       add_definitions(-DWITH_ELTOPO)
287 #endif()
288
289 if(WITH_IMAGE_OPENEXR)
290         add_definitions(-DWITH_OPENEXR)
291 endif()
292
293 if(WITH_IMAGE_TIFF)
294         add_definitions(-DWITH_TIFF)
295 endif()
296
297 if(WITH_IMAGE_OPENJPEG)
298         add_definitions(-DWITH_OPENJPEG)
299 endif()
300
301 if(WITH_IMAGE_DDS)
302         add_definitions(-DWITH_DDS)
303 endif()
304
305 if(WITH_IMAGE_CINEON)
306         add_definitions(-DWITH_CINEON)
307 endif()
308
309 if(WITH_IMAGE_FRAMESERVER)
310         add_definitions(-DWITH_FRAMESERVER)
311 endif()
312
313 if(WITH_IMAGE_HDR)
314         add_definitions(-DWITH_HDR)
315 endif()
316
317 if(WITH_CODEC_AVI)
318         list(APPEND INC
319                 ../avi
320         )
321         add_definitions(-DWITH_AVI)
322 endif()
323
324 if(WITH_CODEC_QUICKTIME)
325         list(APPEND INC
326                 ../quicktime
327         )
328         list(APPEND INC_SYS
329                 ${QUICKTIME_INCLUDE_DIRS}
330         )
331         add_definitions(-DWITH_QUICKTIME)
332 endif()
333
334 if(WITH_CODEC_FFMPEG)
335         list(APPEND SRC
336                 intern/writeffmpeg.c
337                 BKE_writeffmpeg.h
338         )
339         list(APPEND INC
340                 ../../../intern/ffmpeg
341         )
342         list(APPEND INC_SYS
343                 ${FFMPEG_INCLUDE_DIRS}
344         )
345         add_definitions(-DWITH_FFMPEG)
346
347         remove_strict_flags_file(
348                 intern/writeffmpeg.c
349         )
350 endif()
351
352 if(WITH_PYTHON)
353         list(APPEND INC
354                 ../python
355         )
356         add_definitions(-DWITH_PYTHON)
357
358         if(WITH_PYTHON_SECURITY)
359                 add_definitions(-DWITH_PYTHON_SECURITY)
360         endif()
361 endif()
362
363 if(WITH_MOD_FLUID)
364         list(APPEND INC
365                 ../../../intern/elbeem/extern
366         )
367         add_definitions(-DWITH_MOD_FLUID)
368 endif()
369
370 if(WITH_MOD_SMOKE)
371         add_definitions(-DWITH_SMOKE)
372 endif()
373
374 if(WITH_MOD_OCEANSIM)
375         add_definitions(-DWITH_OCEANSIM)
376 endif()
377
378 if(WITH_MOD_BOOLEAN)
379         list(APPEND INC
380                 ../../../intern/bsp/extern
381         )
382 endif()
383
384 if(WITH_JACK)
385         add_definitions(-DWITH_JACK)
386 endif()
387
388 if(WITH_LZO)
389         list(APPEND INC_SYS
390                 ../../../extern/lzo/minilzo
391         )
392         add_definitions(-DWITH_LZO)
393 endif()
394
395 if(WITH_LZMA)
396         list(APPEND INC_SYS
397                 ../../../extern/lzma
398         )
399         add_definitions(-DWITH_LZMA)
400 endif()
401
402 if(WITH_GAMEENGINE)
403         list(APPEND INC_SYS
404                 ../../../extern/recastnavigation
405         )
406         list(APPEND SRC
407                 intern/navmesh_conversion.c
408                 BKE_navmesh_conversion.h
409         )
410
411         add_definitions(-DWITH_GAMEENGINE)
412 endif()
413
414 if(WITH_LIBMV)
415         add_definitions(-DWITH_LIBMV)
416 endif()
417
418 if(WITH_FFTW3)
419         list(APPEND INC_SYS
420                 ${FFTW3_INCLUDE_DIRS}
421         )
422         add_definitions(-DFFTW3=1)
423 endif()
424
425 if(WITH_INTERNATIONAL)
426         add_definitions(-DWITH_INTERNATIONAL)
427 endif()
428
429 if(WITH_FREESTYLE)
430         add_definitions(-DWITH_FREESTYLE)
431 endif()
432
433 ## Warnings as errors, this is too strict!
434 #if(MSVC)
435 #       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
436 #endif()
437
438 blender_add_lib(bf_blenkernel "${SRC}" "${INC}" "${INC_SYS}")