Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / physics / 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 # Contributor(s): Jacques Beaurain.
18 #
19 # ***** END GPL LICENSE BLOCK *****
20
21 set(INC
22         ../include
23         ../../blenkernel
24         ../../blenlib
25         ../../blentranslation
26         ../../depsgraph
27         ../../gpu
28         ../../makesdna
29         ../../makesrna
30         ../../windowmanager
31         ../../../../intern/elbeem/extern
32         ../../../../intern/guardedalloc
33         ../../../../intern/glew-mx
34 )
35
36 set(INC_SYS
37         ${GLEW_INCLUDE_PATH}
38 )
39
40 set(SRC
41         dynamicpaint_ops.c
42         particle_boids.c
43         particle_edit.c
44         particle_edit_undo.c
45         particle_object.c
46         physics_fluid.c
47         physics_ops.c
48         physics_pointcache.c
49         rigidbody_constraint.c
50         rigidbody_object.c
51         rigidbody_world.c
52
53         particle_edit_utildefines.h
54         physics_intern.h
55 )
56
57 if(WITH_MOD_FLUID)
58         add_definitions(-DWITH_MOD_FLUID)
59 endif()
60
61 if(WITH_INTERNATIONAL)
62         add_definitions(-DWITH_INTERNATIONAL)
63 endif()
64
65 if(WITH_BULLET)
66         list(APPEND INC
67                 ../../../../intern/rigidbody
68         )
69         add_definitions(-DWITH_BULLET)
70 endif()
71
72 add_definitions(${GL_DEFINITIONS})
73
74 blender_add_lib(bf_editor_physics "${SRC}" "${INC}" "${INC_SYS}")