Removed blenkernel particle code.
[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         ../blentranslation
32         ../depsgraph
33         ../gpu
34         ../ikplugin
35         ../imbuf
36         ../makesdna
37         ../makesrna
38         ../bmesh
39         ../modifiers
40         ../nodes
41         ../physics
42         ../render/extern/include
43         ../../../intern/ghost
44         ../../../intern/guardedalloc
45         ../../../intern/glew-mx
46         ../../../intern/iksolver/extern
47         ../../../intern/memutil
48         ../../../intern/mikktspace
49         ../../../intern/smoke/extern
50         ../../../intern/atomic
51         ../../../intern/libmv
52
53         # XXX - BAD LEVEL CALL WM_api.h
54         ../windowmanager
55 )
56
57 set(INC_SYS
58         ${GLEW_INCLUDE_PATH}
59         ${ZLIB_INCLUDE_DIRS}
60 )
61
62 set(SRC
63         intern/CCGSubSurf.c
64         intern/CCGSubSurf_legacy.c
65         intern/CCGSubSurf_opensubdiv.c
66         intern/CCGSubSurf_opensubdiv_converter.c
67         intern/CCGSubSurf_util.c
68         intern/DerivedMesh.c
69         intern/action.c
70         intern/addon.c
71         intern/anim.c
72         intern/anim_sys.c
73         intern/appdir.c
74         intern/armature.c
75         intern/armature_update.c
76         intern/autoexec.c
77         intern/blender.c
78         intern/bmfont.c
79         intern/bpath.c
80         intern/brush.c
81         intern/bullet.c
82         intern/bvhutils.c
83         intern/camera.c
84         intern/cdderivedmesh.c
85         intern/cloth.c
86         intern/collision.c
87         intern/colortools.c
88         intern/constraint.c
89         intern/context.c
90         intern/crazyspace.c
91         intern/curve.c
92         intern/customdata.c
93         intern/customdata_file.c
94         intern/data_transfer.c
95         intern/deform.c
96         intern/depsgraph.c
97         intern/displist.c
98         intern/dynamicpaint.c
99         intern/editderivedmesh.c
100         intern/editmesh.c
101         intern/editmesh_bvh.c
102         intern/effect.c
103         intern/fcurve.c
104         intern/fluidsim.c
105         intern/fmodifier.c
106         intern/font.c
107         intern/freestyle.c
108         intern/gpencil.c
109         intern/group.c
110         intern/icons.c
111         intern/idcode.c
112         intern/idprop.c
113         intern/image.c
114         intern/image_gen.c
115         intern/ipo.c
116         intern/key.c
117         intern/lamp.c
118         intern/lattice.c
119         intern/library.c
120         intern/library_query.c
121         intern/linestyle.c
122         intern/mask.c
123         intern/mask_evaluate.c
124         intern/mask_rasterize.c
125         intern/material.c
126         intern/mball.c
127         intern/mball_tessellate.c
128         intern/mesh.c
129         intern/mesh_evaluate.c
130         intern/mesh_mapping.c
131         intern/mesh_remap.c
132         intern/mesh_validate.c
133         intern/modifier.c
134         intern/modifiers_bmesh.c
135         intern/movieclip.c
136         intern/multires.c
137         intern/nla.c
138         intern/node.c
139         intern/object.c
140         intern/object_deform.c
141         intern/object_dupli.c
142         intern/object_update.c
143         intern/ocean.c
144         intern/outliner_treehash.c
145         intern/packedFile.c
146         intern/paint.c
147         intern/pbvh.c
148         intern/pbvh_bmesh.c
149         intern/pointcache.c
150         intern/property.c
151         intern/report.c
152         intern/rigidbody.c
153         intern/sca.c
154         intern/scene.c
155         intern/screen.c
156         intern/seqcache.c
157         intern/seqeffects.c
158         intern/seqmodifier.c
159         intern/sequencer.c
160         intern/shrinkwrap.c
161         intern/sketch.c
162         intern/smoke.c
163         intern/softbody.c
164         intern/sound.c
165         intern/speaker.c
166         intern/subsurf_ccg.c
167         intern/suggestions.c
168         intern/text.c
169         intern/texture.c
170         intern/tracking.c
171         intern/tracking_auto.c
172         intern/tracking_detect.c
173         intern/tracking_plane_tracker.c
174         intern/tracking_region_tracker.c
175         intern/tracking_solver.c
176         intern/tracking_stabilize.c
177         intern/tracking_util.c
178         intern/unit.c
179         intern/world.c
180         intern/writeavi.c
181         intern/writeframeserver.c
182
183         BKE_DerivedMesh.h
184         BKE_action.h
185         BKE_addon.h
186         BKE_anim.h
187         BKE_animsys.h
188         BKE_appdir.h
189         BKE_armature.h
190         BKE_autoexec.h
191         BKE_blender.h
192         BKE_bmfont.h
193         BKE_bmfont_types.h
194         BKE_boids.h
195         BKE_bpath.h
196         BKE_brush.h
197         BKE_bullet.h
198         BKE_bvhutils.h
199         BKE_camera.h
200         BKE_ccg.h
201         BKE_cdderivedmesh.h
202         BKE_cloth.h
203         BKE_collision.h
204         BKE_colortools.h
205         BKE_constraint.h
206         BKE_context.h
207         BKE_crazyspace.h
208         BKE_curve.h
209         BKE_customdata.h
210         BKE_customdata_file.h
211         BKE_data_transfer.h
212         BKE_deform.h
213         BKE_depsgraph.h
214         BKE_displist.h
215         BKE_dynamicpaint.h
216         BKE_editmesh.h
217         BKE_editmesh_bvh.h
218         BKE_effect.h
219         BKE_fcurve.h
220         BKE_fluidsim.h
221         BKE_font.h
222         BKE_freestyle.h
223         BKE_global.h
224         BKE_gpencil.h
225         BKE_group.h
226         BKE_icons.h
227         BKE_idcode.h
228         BKE_idprop.h
229         BKE_image.h
230         BKE_ipo.h
231         BKE_key.h
232         BKE_lamp.h
233         BKE_lattice.h
234         BKE_library.h
235         BKE_library_query.h
236         BKE_linestyle.h
237         BKE_main.h
238         BKE_mask.h
239         BKE_material.h
240         BKE_mball.h
241         BKE_mball_tessellate.h
242         BKE_mesh.h
243         BKE_mesh_mapping.h
244         BKE_mesh_remap.h
245         BKE_modifier.h
246         BKE_movieclip.h
247         BKE_multires.h
248         BKE_nla.h
249         BKE_node.h
250         BKE_object.h
251         BKE_object_deform.h
252         BKE_ocean.h
253         BKE_outliner_treehash.h
254         BKE_packedFile.h
255         BKE_paint.h
256         BKE_pbvh.h
257         BKE_pointcache.h
258         BKE_property.h
259         BKE_report.h
260         BKE_rigidbody.h
261         BKE_sca.h
262         BKE_scene.h
263         BKE_screen.h
264         BKE_sequencer.h
265         BKE_shrinkwrap.h
266         BKE_sketch.h
267         BKE_smoke.h
268         BKE_softbody.h
269         BKE_sound.h
270         BKE_speaker.h
271         BKE_subsurf.h
272         BKE_suggestions.h
273         BKE_text.h
274         BKE_texture.h
275         BKE_tracking.h
276         BKE_unit.h
277         BKE_utildefines.h
278         BKE_world.h
279         BKE_writeavi.h
280         BKE_writeframeserver.h
281
282         depsgraph_private.h
283         nla_private.h
284         tracking_private.h
285         intern/CCGSubSurf.h
286         intern/CCGSubSurf_inline.h
287         intern/CCGSubSurf_intern.h
288         intern/pbvh_intern.h
289         intern/data_transfer_intern.h
290 )
291
292 if(WITH_BINRELOC)
293         list(APPEND INC_SYS
294                 ${BINRELOC_INCLUDE_DIRS}
295         )
296         add_definitions(-DWITH_BINRELOC)
297 endif()
298
299 add_definitions(${GL_DEFINITIONS})
300
301 if(WIN32)
302         list(APPEND INC
303                 ../../../intern/utfconv
304         )
305 endif()
306
307 if(WITH_AUDASPACE)
308         add_definitions(${AUDASPACE_DEFINITIONS})
309
310         list(APPEND INC_SYS
311                 ${AUDASPACE_C_INCLUDE_DIRS}
312         )
313 endif()
314
315 if(WITH_BULLET)
316         list(APPEND INC_SYS
317                 ${BULLET_INCLUDE_DIRS}
318         )
319         list(APPEND INC
320                 ../../../intern/rigidbody
321         )
322         add_definitions(-DWITH_BULLET)
323 endif()
324
325 #if(WITH_MOD_CLOTH_ELTOPO)
326 #       list(APPEND INC
327 #               ../../../extern/eltopo
328 #               ../../../extern/eltopo/eltopo3d
329 #       )
330 #       add_definitions(-DWITH_ELTOPO)
331 #endif()
332
333 if(WITH_IMAGE_OPENEXR)
334         add_definitions(-DWITH_OPENEXR)
335 endif()
336
337 if(WITH_IMAGE_TIFF)
338         add_definitions(-DWITH_TIFF)
339 endif()
340
341 if(WITH_OPENIMAGEIO)
342         add_definitions(-DWITH_OPENIMAGEIO)
343 endif()
344
345 if(WITH_IMAGE_OPENJPEG)
346         add_definitions(-DWITH_OPENJPEG)
347 endif()
348
349 if(WITH_IMAGE_DDS)
350         add_definitions(-DWITH_DDS)
351 endif()
352
353 if(WITH_IMAGE_CINEON)
354         add_definitions(-DWITH_CINEON)
355 endif()
356
357 if(WITH_IMAGE_FRAMESERVER)
358         add_definitions(-DWITH_FRAMESERVER)
359 endif()
360
361 if(WITH_IMAGE_HDR)
362         add_definitions(-DWITH_HDR)
363 endif()
364
365 if(WITH_CODEC_AVI)
366         list(APPEND INC
367                 ../avi
368         )
369         add_definitions(-DWITH_AVI)
370 endif()
371
372 if(WITH_CODEC_QUICKTIME)
373         list(APPEND INC
374                 ../quicktime
375         )
376         list(APPEND INC_SYS
377                 ${QUICKTIME_INCLUDE_DIRS}
378         )
379         add_definitions(-DWITH_QUICKTIME)
380 endif()
381
382 if(WITH_CODEC_FFMPEG)
383         list(APPEND SRC
384                 intern/writeffmpeg.c
385                 BKE_writeffmpeg.h
386         )
387         list(APPEND INC
388                 ../../../intern/ffmpeg
389         )
390         list(APPEND INC_SYS
391                 ${FFMPEG_INCLUDE_DIRS}
392         )
393         add_definitions(-DWITH_FFMPEG)
394
395         remove_strict_flags_file(
396                 intern/writeffmpeg.c
397         )
398 endif()
399
400 if(WITH_PYTHON)
401         list(APPEND INC
402                 ../python
403         )
404         add_definitions(-DWITH_PYTHON)
405
406         if(WITH_PYTHON_SECURITY)
407                 add_definitions(-DWITH_PYTHON_SECURITY)
408         endif()
409
410
411         if (PYTHON_EXECUTABLE)
412                 get_filename_component(_python_exe_name ${PYTHON_EXECUTABLE} NAME)
413                 add_definitions(-DPYTHON_EXECUTABLE_NAME=${_python_exe_name})
414                 unset(_python_exe_name)
415         endif()
416 endif()
417
418 if(WITH_MOD_FLUID)
419         list(APPEND INC
420                 ../../../intern/elbeem/extern
421         )
422         add_definitions(-DWITH_MOD_FLUID)
423 endif()
424
425 if(WITH_MOD_SMOKE)
426         add_definitions(-DWITH_SMOKE)
427 endif()
428
429 if(WITH_MOD_OCEANSIM)
430         add_definitions(-DWITH_OCEANSIM)
431 endif()
432
433 if(WITH_JACK)
434         add_definitions(-DWITH_JACK)
435 endif()
436
437 if(WITH_LZO)
438         if(WITH_SYSTEM_LZO)
439                 list(APPEND INC_SYS
440                         ${LZO_INCLUDE_DIR}
441                 )
442                 add_definitions(-DWITH_SYSTEM_LZO)
443         else()
444                 list(APPEND INC_SYS
445                         ../../../extern/lzo/minilzo
446                 )
447         endif()
448         add_definitions(-DWITH_LZO)
449 endif()
450
451 if(WITH_LZMA)
452         list(APPEND INC_SYS
453                 ../../../extern/lzma
454         )
455         add_definitions(-DWITH_LZMA)
456 endif()
457
458 if(WITH_GAMEENGINE)
459         list(APPEND INC_SYS
460                 ../../../extern/recastnavigation
461         )
462         list(APPEND SRC
463                 intern/navmesh_conversion.c
464                 BKE_navmesh_conversion.h
465         )
466
467         add_definitions(-DWITH_GAMEENGINE)
468 endif()
469
470 if(WITH_LIBMV)
471         add_definitions(-DWITH_LIBMV)
472 endif()
473
474 if(WITH_FFTW3)
475         list(APPEND INC_SYS
476                 ${FFTW3_INCLUDE_DIRS}
477         )
478         add_definitions(-DFFTW3=1)
479 endif()
480
481 if(WITH_INTERNATIONAL)
482         add_definitions(-DWITH_INTERNATIONAL)
483 endif()
484
485 if(WITH_FREESTYLE)
486         add_definitions(-DWITH_FREESTYLE)
487 endif()
488
489 if(WITH_OPENSUBDIV)
490         add_definitions(-DWITH_OPENSUBDIV)
491         list(APPEND INC_SYS
492                 ../../../intern/opensubdiv
493                 ${OPENSUBDIV_INCLUDE_DIRS}
494         )
495 endif()
496
497 if(WITH_OPENVDB)
498         add_definitions(-DWITH_OPENVDB)
499         list(APPEND INC
500                  ../../../intern/openvdb
501         )
502
503         if(WITH_OPENVDB_BLOSC)
504                 add_definitions(
505                         -DWITH_OPENVDB_BLOSC
506                 )
507         endif()
508 endif()
509
510 ## Warnings as errors, this is too strict!
511 #if(MSVC)
512 #       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
513 #endif()
514
515 if(WITH_LEGACY_DEPSGRAPH)
516         add_definitions(-DWITH_LEGACY_DEPSGRAPH)
517 endif()
518
519 blender_add_lib(bf_blenkernel "${SRC}" "${INC}" "${INC_SYS}")