Ghost Context Refactor
[blender-staging.git] / source / blender / editors / object / 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         ../../blenfont
24         ../../blenkernel
25         ../../blenlib
26         ../../bmesh
27         ../../gpu
28         ../../ikplugin
29         ../../imbuf
30         ../../makesdna
31         ../../makesrna
32         ../../python
33         ../../render/extern/include
34         ../../windowmanager
35         ../../../../intern/guardedalloc
36         ../../../../intern/glew-mx
37 )
38
39 set(INC_SYS
40         ${GLEW_INCLUDE_PATH}
41 )
42
43 set(SRC
44         object_add.c
45         object_bake.c
46         object_bake_api.c
47         object_constraint.c
48         object_edit.c
49         object_group.c
50         object_hook.c
51         object_lattice.c
52         object_lod.c
53         object_modifier.c
54         object_ops.c
55         object_random.c
56         object_relations.c
57         object_select.c
58         object_shapekey.c
59         object_transform.c
60         object_warp.c
61         object_vgroup.c
62
63         object_intern.h
64 )
65
66 add_definitions(${GL_DEFINITIONS})
67
68 if(WITH_PYTHON)
69         add_definitions(-DWITH_PYTHON)
70 endif()
71
72 if(WITH_GAMEENGINE)
73         add_definitions(-DWITH_GAMEENGINE)
74 endif()
75
76 if(WITH_INTERNATIONAL)
77         add_definitions(-DWITH_INTERNATIONAL)
78 endif()
79
80 blender_add_lib(bf_editor_object "${SRC}" "${INC}" "${INC_SYS}")