Merge branch 'blender2.7'
[blender.git] / source / blender / editors / mesh / 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         ../uvedit
24         ../../blenkernel
25         ../../blenlib
26         ../../blentranslation
27         ../../depsgraph
28         ../../bmesh
29         ../../gpu
30         ../../imbuf
31         ../../makesdna
32         ../../makesrna
33         ../../render/extern/include
34         ../../windowmanager
35         ../../../../intern/clog
36         ../../../../intern/guardedalloc
37         ../../../../intern/glew-mx
38 )
39
40 set(INC_SYS
41         ${GLEW_INCLUDE_PATH}
42 )
43
44 set(SRC
45         editface.c
46         editmesh_add.c
47         editmesh_add_gizmo.c
48         editmesh_bevel.c
49         editmesh_bisect.c
50         editmesh_extrude.c
51         editmesh_extrude_screw.c
52         editmesh_extrude_spin.c
53         editmesh_extrude_spin_gizmo.c
54         editmesh_inset.c
55         editmesh_intersect.c
56         editmesh_knife.c
57         editmesh_knife_project.c
58         editmesh_loopcut.c
59         editmesh_path.c
60         editmesh_polybuild.c
61         editmesh_preselect_edgering.c
62         editmesh_preselect_elem.c
63         editmesh_rip.c
64         editmesh_rip_edge.c
65         editmesh_select.c
66         editmesh_select_similar.c
67         editmesh_tools.c
68         editmesh_undo.c
69         editmesh_utils.c
70         mesh_data.c
71         mesh_mirror.c
72         mesh_ops.c
73         meshtools.c
74
75         mesh_intern.h
76 )
77
78 if(WITH_INTERNATIONAL)
79         add_definitions(-DWITH_INTERNATIONAL)
80 endif()
81
82 if(WITH_FREESTYLE)
83         add_definitions(-DWITH_FREESTYLE)
84 endif()
85
86 if(WITH_BULLET)
87         add_definitions(-DWITH_BULLET)
88 endif()
89
90 add_definitions(${GL_DEFINITIONS})
91
92 blender_add_lib(bf_editor_mesh "${SRC}" "${INC}" "${INC_SYS}")