Merged changes in the trunk up to revision 54110.
[blender.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         ../../../intern/opennl/extern
35 )
36
37 set(INC_SYS
38
39 )
40
41 set(SRC
42         operators/bmo_bevel.c
43         operators/bmo_connect.c
44         operators/bmo_create.c
45         operators/bmo_dissolve.c
46         operators/bmo_dupe.c
47         operators/bmo_edgesplit.c
48         operators/bmo_extrude.c
49         operators/bmo_hull.c
50         operators/bmo_inset.c
51         operators/bmo_join_triangles.c
52         operators/bmo_mesh_conv.c
53         operators/bmo_mirror.c
54         operators/bmo_primitive.c
55         operators/bmo_removedoubles.c
56         operators/bmo_similar.c
57         operators/bmo_smooth_laplacian.c
58         operators/bmo_symmetrize.c
59         operators/bmo_subdivide.c
60         operators/bmo_subdivide.h
61         operators/bmo_triangulate.c
62         operators/bmo_unsubdivide.c
63         operators/bmo_utils.c
64         operators/bmo_wireframe.c
65
66         intern/bmesh_construct.c
67         intern/bmesh_construct.h
68         intern/bmesh_core.c
69         intern/bmesh_core.h
70         intern/bmesh_inline.h
71         intern/bmesh_interp.c
72         intern/bmesh_interp.h
73         intern/bmesh_iterators.c
74         intern/bmesh_iterators.h
75         intern/bmesh_iterators_inline.h
76         intern/bmesh_log.c
77         intern/bmesh_log.h
78         intern/bmesh_marking.c
79         intern/bmesh_marking.h
80         intern/bmesh_mesh.c
81         intern/bmesh_mesh.h
82         intern/bmesh_mesh_conv.c
83         intern/bmesh_mesh_conv.h
84         intern/bmesh_mesh_validate.c
85         intern/bmesh_mesh_validate.h
86         intern/bmesh_mods.c
87         intern/bmesh_mods.h
88         intern/bmesh_opdefines.c
89         intern/bmesh_operator_api_inline.h
90         intern/bmesh_operators.c
91         intern/bmesh_operators.h
92         intern/bmesh_operators_private.h
93         intern/bmesh_polygon.c
94         intern/bmesh_polygon.h
95         intern/bmesh_private.h
96         intern/bmesh_queries.c
97         intern/bmesh_queries.h
98         intern/bmesh_structure.c
99         intern/bmesh_structure.h
100         intern/bmesh_walkers.c
101         intern/bmesh_walkers.h
102         intern/bmesh_walkers_impl.c
103         intern/bmesh_walkers_private.h
104
105         intern/bmesh_operator_api.h
106         intern/bmesh_error.h
107
108         tools/BME_bevel.c
109         tools/bmesh_bevel.c
110         tools/bmesh_bevel.h
111         tools/bmesh_decimate_collapse.c
112         tools/bmesh_decimate_dissolve.c
113         tools/bmesh_decimate_unsubdivide.c
114         tools/bmesh_decimate.h
115         tools/bmesh_edgesplit.c
116         tools/bmesh_edgesplit.h
117
118         bmesh.h
119         bmesh_class.h
120 )
121
122 if(MSVC)
123         set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
124 endif()
125
126 if(WITH_BULLET)
127         add_definitions(-DWITH_BULLET)
128         list(APPEND INC_SYS
129                 ${BULLET_INCLUDE_DIRS}
130         )
131 endif()
132
133 if(WITH_INTERNATIONAL)
134         add_definitions(-DWITH_INTERNATIONAL)
135 endif()
136
137 if(WITH_FREESTYLE)
138         add_definitions(-DWITH_FREESTYLE)
139 endif()
140
141 blender_add_lib(bf_bmesh "${SRC}" "${INC}" "${INC_SYS}")