Ghost Context Refactor
[blender-staging.git] / source / blender / editors / armature / 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         ../../gpu
27         ../../makesdna
28         ../../makesrna
29         ../../windowmanager
30         ../../../../intern/guardedalloc
31         ../../../../intern/glew-mx
32 )
33
34 set(INC_SYS
35         ${GLEW_INCLUDE_PATH}
36 )
37
38 set(SRC
39         armature_add.c
40         armature_edit.c
41         armature_naming.c
42         armature_ops.c
43         armature_relations.c
44         armature_select.c
45         armature_skinning.c
46         armature_utils.c
47         editarmature_generate.c
48         editarmature_retarget.c
49         editarmature_sketch.c
50         meshlaplacian.c
51         pose_edit.c
52         pose_lib.c
53         pose_group.c
54         pose_select.c
55         pose_slide.c
56         pose_transform.c
57         pose_utils.c
58         reeb.c
59
60         BIF_generate.h
61         BIF_retarget.h
62         armature_intern.h
63         meshlaplacian.h
64         reeb.h
65 )
66
67 if(WITH_INTERNATIONAL)
68         add_definitions(-DWITH_INTERNATIONAL)
69 endif()
70
71 if(WITH_OPENNL)
72         add_definitions(-DWITH_OPENNL)
73         list(APPEND INC_SYS
74                 ../../../../intern/opennl/extern
75         )
76 endif()
77
78 add_definitions(${GL_DEFINITIONS})
79
80 blender_add_lib(bf_editor_armature "${SRC}" "${INC}" "${INC_SYS}")