code cleanup: rename BKE_tessmesh -> BKE_editmesh, rename EditDerivedBMesh.tc ->...
[blender-staging.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
48         # XXX - BAD LEVEL CALL WM_api.h
49         ../windowmanager
50 )
51
52 set(INC_SYS
53         ${GLEW_INCLUDE_PATH}
54         ${ZLIB_INCLUDE_DIRS}
55 )
56
57 set(SRC
58         intern/CCGSubSurf.c
59         intern/DerivedMesh.c
60         intern/action.c
61         intern/addon.c
62         intern/anim.c
63         intern/anim_sys.c
64         intern/armature.c
65         intern/blender.c
66         intern/bmfont.c
67         intern/boids.c
68         intern/bpath.c
69         intern/brush.c
70         intern/bullet.c
71         intern/bvhutils.c
72         intern/camera.c
73         intern/cdderivedmesh.c
74         intern/cloth.c
75         intern/collision.c
76         intern/colortools.c
77         intern/constraint.c
78         intern/context.c
79         intern/curve.c
80         intern/customdata.c
81         intern/customdata_file.c
82         intern/deform.c
83         intern/depsgraph.c
84         intern/displist.c
85         intern/dynamicpaint.c
86         intern/editderivedmesh.c
87         intern/effect.c
88         intern/fcurve.c
89         intern/fluidsim.c
90         intern/fmodifier.c
91         intern/font.c
92         intern/freestyle.c
93         intern/gpencil.c
94         intern/group.c
95         intern/icons.c
96         intern/idcode.c
97         intern/idprop.c
98         intern/image.c
99         intern/image_gen.c
100         intern/implicit.c
101         intern/ipo.c
102         intern/key.c
103         intern/lamp.c
104         intern/lattice.c
105         intern/library.c
106         intern/linestyle.c
107         intern/mask.c
108         intern/mask_evaluate.c
109         intern/mask_rasterize.c
110         intern/material.c
111         intern/mball.c
112         intern/mesh.c
113         intern/mesh_validate.c
114         intern/modifier.c
115         intern/modifiers_bmesh.c
116         intern/movieclip.c
117         intern/multires.c
118         intern/nla.c
119         intern/node.c
120         intern/object.c
121         intern/object_deform.c
122         intern/ocean.c
123         intern/packedFile.c
124         intern/paint.c
125         intern/particle.c
126         intern/particle_system.c
127         intern/pbvh.c
128         intern/pbvh_bmesh.c
129         intern/pointcache.c
130         intern/property.c
131         intern/report.c
132         intern/rigidbody.c
133         intern/sca.c
134         intern/scene.c
135         intern/screen.c
136         intern/script.c
137         intern/seqcache.c
138         intern/seqeffects.c
139         intern/seqmodifier.c
140         intern/sequencer.c
141         intern/shrinkwrap.c
142         intern/sketch.c
143         intern/smoke.c
144         intern/softbody.c
145         intern/sound.c
146         intern/speaker.c
147         intern/subsurf_ccg.c
148         intern/suggestions.c
149         intern/text.c
150         intern/texture.c
151         intern/tracking.c
152         intern/unit.c
153         intern/world.c
154         intern/writeavi.c
155         intern/writeframeserver.c
156
157         BKE_DerivedMesh.h
158         BKE_action.h
159         BKE_addon.h
160         BKE_anim.h
161         BKE_animsys.h
162         BKE_armature.h
163         BKE_blender.h
164         BKE_bmesh.h
165         BKE_bmfont.h
166         BKE_bmfont_types.h
167         BKE_boids.h
168         BKE_bpath.h
169         BKE_brush.h
170         BKE_bullet.h
171         BKE_bvhutils.h
172         BKE_camera.h
173         BKE_ccg.h
174         BKE_cdderivedmesh.h
175         BKE_cloth.h
176         BKE_collision.h
177         BKE_colortools.h
178         BKE_constraint.h
179         BKE_context.h
180         BKE_curve.h
181         BKE_customdata.h
182         BKE_customdata_file.h
183         BKE_deform.h
184         BKE_depsgraph.h
185         BKE_displist.h
186         BKE_dynamicpaint.h
187         BKE_effect.h
188         BKE_fcurve.h
189         BKE_fluidsim.h
190         BKE_font.h
191         BKE_freestyle.h
192         BKE_global.h
193         BKE_gpencil.h
194         BKE_group.h
195         BKE_icons.h
196         BKE_idcode.h
197         BKE_idprop.h
198         BKE_image.h
199         BKE_ipo.h
200         BKE_key.h
201         BKE_lamp.h
202         BKE_lattice.h
203         BKE_library.h
204         BKE_linestyle.h
205         BKE_main.h
206         BKE_mask.h
207         BKE_material.h
208         BKE_mball.h
209         BKE_mesh.h
210         BKE_modifier.h
211         BKE_movieclip.h
212         BKE_multires.h
213         BKE_nla.h
214         BKE_node.h
215         BKE_object.h
216         BKE_object_deform.h
217         BKE_ocean.h
218         BKE_packedFile.h
219         BKE_paint.h
220         BKE_particle.h
221         BKE_pbvh.h
222         BKE_pointcache.h
223         BKE_property.h
224         BKE_report.h
225         BKE_rigidbody.h
226         BKE_sca.h
227         BKE_scene.h
228         BKE_screen.h
229         BKE_script.h
230         BKE_sequencer.h
231         BKE_shrinkwrap.h
232         BKE_sketch.h
233         BKE_smoke.h
234         BKE_softbody.h
235         BKE_sound.h
236         BKE_speaker.h
237         BKE_subsurf.h
238         BKE_suggestions.h
239         BKE_editmesh.h
240         BKE_text.h
241         BKE_texture.h
242         BKE_tracking.h
243         BKE_unit.h
244         BKE_utildefines.h
245         BKE_world.h
246         BKE_writeavi.h
247         BKE_writeframeserver.h
248
249         depsgraph_private.h
250         nla_private.h
251         intern/CCGSubSurf.h
252         intern/pbvh_intern.h
253 )
254
255 add_definitions(-DGLEW_STATIC)
256
257 if(WITH_AUDASPACE)
258         list(APPEND INC
259                 ../../../intern/audaspace/intern
260         )
261         add_definitions(-DWITH_AUDASPACE)
262 endif()
263
264 if(WITH_BULLET)
265         list(APPEND INC_SYS
266                 ${BULLET_INCLUDE_DIRS}
267         )
268         list(APPEND INC
269                 ../../../intern/rigidbody
270         )
271         add_definitions(-DWITH_BULLET)
272 endif()
273
274 #if(WITH_MOD_CLOTH_ELTOPO)
275 #       list(APPEND INC
276 #               ../../../extern/eltopo
277 #               ../../../extern/eltopo/eltopo3d
278 #       )
279 #       add_definitions(-DWITH_ELTOPO)
280 #endif()
281
282 if(WITH_IMAGE_OPENEXR)
283         add_definitions(-DWITH_OPENEXR)
284 endif()
285
286 if(WITH_IMAGE_TIFF)
287         add_definitions(-DWITH_TIFF)
288 endif()
289
290 if(WITH_IMAGE_OPENJPEG)
291         add_definitions(-DWITH_OPENJPEG)
292 endif()
293
294 if(WITH_IMAGE_DDS)
295         add_definitions(-DWITH_DDS)
296 endif()
297
298 if(WITH_IMAGE_CINEON)
299         add_definitions(-DWITH_CINEON)
300 endif()
301
302 if(WITH_IMAGE_FRAMESERVER)
303         add_definitions(-DWITH_FRAMESERVER)
304 endif()
305
306 if(WITH_IMAGE_HDR)
307         add_definitions(-DWITH_HDR)
308 endif()
309
310 if(WITH_CODEC_AVI)
311         list(APPEND INC
312                 ../avi
313         )
314         add_definitions(-DWITH_AVI)
315 endif()
316
317 if(WITH_CODEC_QUICKTIME)
318         list(APPEND INC
319                 ../quicktime
320         )
321         list(APPEND INC_SYS
322                 ${QUICKTIME_INCLUDE_DIRS}
323         )
324         add_definitions(-DWITH_QUICKTIME)
325 endif()
326
327 if(WITH_CODEC_FFMPEG)
328         list(APPEND SRC
329                 intern/writeffmpeg.c
330                 BKE_writeffmpeg.h
331         )
332         list(APPEND INC
333                 ../../../intern/ffmpeg
334         )
335         list(APPEND INC_SYS
336                 ${FFMPEG_INCLUDE_DIRS}
337         )
338         add_definitions(-DWITH_FFMPEG)
339
340         remove_strict_flags_file(
341                 intern/writeffmpeg.c
342         )
343 endif()
344
345 if(WITH_PYTHON)
346         list(APPEND INC
347                 ../python
348         )
349         add_definitions(-DWITH_PYTHON)
350
351         if(WITH_PYTHON_SECURITY)
352                 add_definitions(-DWITH_PYTHON_SECURITY)
353         endif()
354 endif()
355
356 if(WITH_OPENMP)
357         add_definitions(-DPARALLEL=1)
358 endif()
359
360 if(WITH_MOD_FLUID)
361         list(APPEND INC
362                 ../../../intern/elbeem/extern
363         )
364         add_definitions(-DWITH_MOD_FLUID)
365 endif()
366
367 if(WITH_MOD_SMOKE)
368         add_definitions(-DWITH_SMOKE)
369 endif()
370
371 if(WITH_MOD_OCEANSIM)
372         add_definitions(-DWITH_OCEANSIM)
373 endif()
374
375 if(WITH_MOD_BOOLEAN)
376         list(APPEND INC
377                 ../../../intern/bsp/extern
378         )
379 endif()
380
381 if(WITH_JACK)
382         add_definitions(-DWITH_JACK)
383 endif()
384
385 if(WITH_LZO)
386         list(APPEND INC_SYS
387                 ../../../extern/lzo/minilzo
388         )
389         add_definitions(-DWITH_LZO)
390 endif()
391
392 if(WITH_LZMA)
393         list(APPEND INC_SYS
394                 ../../../extern/lzma
395         )
396         add_definitions(-DWITH_LZMA)
397 endif()
398
399 if(WITH_GAMEENGINE)
400         list(APPEND INC_SYS
401                 ../../../extern/recastnavigation
402         )
403         list(APPEND SRC
404                 intern/navmesh_conversion.c
405                 BKE_navmesh_conversion.h
406         )
407
408         add_definitions(-DWITH_GAMEENGINE)
409 endif()
410
411 if(WITH_LIBMV)
412         list(APPEND INC
413                 ../../../extern/libmv
414         )
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}")