BMesh: edge-offset feature (Ctrl+Shift+R)
[blender-staging.git] / source / blender / bmesh / 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 # The Original Code is Copyright (C) 2006, Blender Foundation
18 # All rights reserved.
19 #
20 # The Original Code is: all of this file.
21 #
22 # Contributor(s): Jacques Beaurain.
23 #
24 # ***** END GPL LICENSE BLOCK *****
25
26 set(INC
27         .
28         ../blenfont
29         ../blenkernel
30         ../blenlib
31         ../makesdna
32         ../../../intern/guardedalloc
33         ../../../extern/rangetree
34 )
35
36 set(INC_SYS
37
38 )
39
40 set(SRC
41         operators/bmo_beautify.c
42         operators/bmo_bevel.c
43         operators/bmo_bisect_plane.c
44         operators/bmo_bridge.c
45         operators/bmo_connect.c
46         operators/bmo_connect_concave.c
47         operators/bmo_connect_nonplanar.c
48         operators/bmo_connect_pair.c
49         operators/bmo_create.c
50         operators/bmo_dissolve.c
51         operators/bmo_dupe.c
52         operators/bmo_edgenet.c
53         operators/bmo_extrude.c
54         operators/bmo_fill_attribute.c
55         operators/bmo_fill_edgeloop.c
56         operators/bmo_fill_grid.c
57         operators/bmo_fill_holes.c
58         operators/bmo_hull.c
59         operators/bmo_inset.c
60         operators/bmo_join_triangles.c
61         operators/bmo_mesh_conv.c
62         operators/bmo_mirror.c
63         operators/bmo_normals.c
64         operators/bmo_offset_edgeloops.c
65         operators/bmo_planar_faces.c
66         operators/bmo_poke.c
67         operators/bmo_primitive.c
68         operators/bmo_removedoubles.c
69         operators/bmo_similar.c
70         operators/bmo_smooth_laplacian.c
71         operators/bmo_split_edges.c
72         operators/bmo_subdivide.c
73         operators/bmo_subdivide_edgering.c
74         operators/bmo_symmetrize.c
75         operators/bmo_triangulate.c
76         operators/bmo_unsubdivide.c
77         operators/bmo_utils.c
78         operators/bmo_wireframe.c
79
80         intern/bmesh_callback_generic.c
81         intern/bmesh_callback_generic.h
82         intern/bmesh_construct.c
83         intern/bmesh_construct.h
84         intern/bmesh_core.c
85         intern/bmesh_core.h
86         intern/bmesh_edgeloop.c
87         intern/bmesh_edgeloop.h
88         intern/bmesh_delete.c
89         intern/bmesh_delete.h
90         intern/bmesh_inline.h
91         intern/bmesh_interp.c
92         intern/bmesh_interp.h
93         intern/bmesh_iterators.c
94         intern/bmesh_iterators.h
95         intern/bmesh_iterators_inline.h
96         intern/bmesh_log.c
97         intern/bmesh_log.h
98         intern/bmesh_marking.c
99         intern/bmesh_marking.h
100         intern/bmesh_mesh.c
101         intern/bmesh_mesh.h
102         intern/bmesh_mesh_conv.c
103         intern/bmesh_mesh_conv.h
104         intern/bmesh_mesh_validate.c
105         intern/bmesh_mesh_validate.h
106         intern/bmesh_mods.c
107         intern/bmesh_mods.h
108         intern/bmesh_opdefines.c
109         intern/bmesh_operator_api_inline.h
110         intern/bmesh_operators.c
111         intern/bmesh_operators.h
112         intern/bmesh_operators_private.h
113         intern/bmesh_polygon.c
114         intern/bmesh_polygon.h
115         intern/bmesh_private.h
116         intern/bmesh_queries.c
117         intern/bmesh_queries.h
118         intern/bmesh_queries_inline.h
119         intern/bmesh_structure.c
120         intern/bmesh_structure.h
121         intern/bmesh_structure_inline.h
122         intern/bmesh_walkers.c
123         intern/bmesh_walkers.h
124         intern/bmesh_walkers_impl.c
125         intern/bmesh_walkers_private.h
126
127         intern/bmesh_operator_api.h
128         intern/bmesh_error.h
129
130         tools/bmesh_beautify.c
131         tools/bmesh_beautify.h
132         tools/bmesh_bevel.c
133         tools/bmesh_bevel.h
134         tools/bmesh_bisect_plane.c
135         tools/bmesh_bisect_plane.h
136         tools/bmesh_decimate_collapse.c
137         tools/bmesh_decimate_dissolve.c
138         tools/bmesh_decimate_unsubdivide.c
139         tools/bmesh_decimate.h
140         tools/bmesh_edgenet.c
141         tools/bmesh_edgenet.h
142         tools/bmesh_edgesplit.c
143         tools/bmesh_edgesplit.h
144         tools/bmesh_intersect.c
145         tools/bmesh_intersect.h
146         tools/bmesh_path.c
147         tools/bmesh_path.h
148         tools/bmesh_region_match.c
149         tools/bmesh_region_match.h
150         tools/bmesh_triangulate.c
151         tools/bmesh_triangulate.h
152         tools/bmesh_wireframe.c
153         tools/bmesh_wireframe.h
154
155         bmesh_class.h
156
157         # public includes
158         bmesh.h
159         bmesh_tools.h
160 )
161
162 if(MSVC)
163         set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
164 endif()
165
166 if(WITH_BULLET)
167         add_definitions(-DWITH_BULLET)
168         list(APPEND INC_SYS
169                 ${BULLET_INCLUDE_DIRS}
170         )
171 endif()
172
173 if(WITH_INTERNATIONAL)
174         add_definitions(-DWITH_INTERNATIONAL)
175 endif()
176
177 if(WITH_OPENNL)
178         add_definitions(-DWITH_OPENNL)
179         list(APPEND INC_SYS
180                 ../../../intern/opennl/extern
181         )
182 endif()
183
184 if(WITH_FREESTYLE)
185         add_definitions(-DWITH_FREESTYLE)
186 endif()
187
188 blender_add_lib(bf_bmesh "${SRC}" "${INC}" "${INC_SYS}")