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