69ef4715df6e6a5fc228dd68995571861d5d8f10
[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         ../../blenfont
25         ../../blenkernel
26         ../../blenlib
27         ../../bmesh
28         ../../gpu
29         ../../imbuf
30         ../../makesdna
31         ../../makesrna
32         ../../render/extern/include
33         ../../windowmanager
34         ../../../../intern/guardedalloc
35 )
36
37 set(INC_SYS
38         ${GLEW_INCLUDE_PATH}
39 )
40
41 set(SRC
42         editface.c
43         editmesh_add.c
44         editmesh_bevel.c
45         editmesh_extrude.c
46         editmesh_inset.c
47         editmesh_knife.c
48         editmesh_knife_project.c
49         editmesh_loopcut.c
50         editmesh_path.c
51         editmesh_rip.c
52         editmesh_select.c
53         editmesh_tools.c
54         editmesh_utils.c
55         mesh_data.c
56         mesh_ops.c
57         meshtools.c
58
59         mesh_intern.h
60 )
61
62 if(WITH_GAMEENGINE)
63         add_definitions(-DWITH_GAMEENGINE)
64
65         list(APPEND INC
66                 ../../../../extern/recastnavigation
67         )
68
69         list(APPEND SRC
70                 mesh_navmesh.c
71         )
72 endif()
73
74 if(WITH_INTERNATIONAL)
75         add_definitions(-DWITH_INTERNATIONAL)
76 endif()
77
78 if(WITH_FREESTYLE)
79         add_definitions(-DWITH_FREESTYLE)
80 endif()
81
82 if(WITH_BULLET)
83         add_definitions(-DWITH_BULLET)
84 endif()
85
86 blender_add_lib(bf_editor_mesh "${SRC}" "${INC}" "${INC_SYS}")