added boolean type for bmesh operators, will make python wrapping clearer and also...
[blender.git] / source / blender / bmesh / CMakeLists.txt
1 # $Id: CMakeLists.txt 31746 2010-09-04 05:31:25Z joeedh $
2 # ***** BEGIN GPL LICENSE BLOCK *****
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software Foundation,
16 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 #
18 # The Original Code is Copyright (C) 2006, Blender Foundation
19 # All rights reserved.
20 #
21 # The Original Code is: all of this file.
22 #
23 # Contributor(s): Jacques Beaurain.
24 #
25 # ***** END GPL LICENSE BLOCK *****
26
27 set(INC 
28         .
29         intern
30         operators
31         ../avi
32         ../blenfont
33         ../blenkernel
34         ../blenlib
35         ../blenloader
36         ../editors/include
37         ../editors/mesh
38         ../gpu
39         ../ikplugin
40         ../imbuf
41         ../makesdna
42         ../makesrna
43         ../modifiers
44         ../nodes
45         ../render/extern/include
46         ../../../extern/glew/include
47         ../../../intern/audaspace/intern
48         ../../../intern/bsp/extern
49         ../../../intern/decimation/extern
50         ../../../intern/elbeem/extern
51         ../../../intern/guardedalloc
52         ../../../intern/iksolver/extern
53         ../../../intern/memutil
54         ../../../intern/mikktspace
55         ../../../intern/opennl/extern
56         ../../../intern/smoke/extern
57         # XXX - BAD LEVEL CALL WM_api.h
58         ../../../source/blender/windowmanager
59 )
60
61 set(INC_SYS
62         ${ZLIB_INCLUDE_DIRS}
63 )
64
65 set(SRC
66         operators/bmo_bevel.c
67         operators/bmo_connect.c
68         operators/bmo_create.c
69         operators/bmo_dissolve.c
70         operators/bmo_dupe.c
71         operators/bmo_edgesplit.c
72         operators/bmo_extrude.c
73         operators/bmo_join_triangles.c
74         operators/bmo_mesh_conv.c
75         operators/bmo_mirror.c
76         operators/bmo_primitive.c
77         operators/bmo_removedoubles.c
78         operators/bmo_subdivide.c
79         operators/bmo_subdivide.h
80         operators/bmo_triangulate.c
81         operators/bmo_utils.c
82
83         intern/bmesh_construct.c
84         intern/bmesh_inline.c
85         intern/bmesh_interp.c
86         intern/bmesh_iterators.c
87         intern/bmesh_iterators_inline.c
88         intern/bmesh_marking.c
89         intern/bmesh_mesh.c
90         intern/bmesh_mods.c
91         intern/bmesh_newcore.c
92         intern/bmesh_opdefines.c
93         intern/bmesh_operators.c
94         intern/bmesh_operators_private.h
95         intern/bmesh_polygon.c
96         intern/bmesh_private.h
97         intern/bmesh_queries.c
98         intern/bmesh_structure.c
99         intern/bmesh_structure.h
100         intern/bmesh_walkers.c
101         intern/bmesh_walkers_impl.c
102         intern/bmesh_walkers_private.h
103
104         tools/BME_bevel.c
105
106         bmesh.h
107         bmesh_class.h
108         bmesh_error.h
109         bmesh_iterators.h
110         bmesh_marking.h
111         bmesh_operator_api.h
112         bmesh_operators.h
113         bmesh_queries.h
114         bmesh_walkers.h
115 )
116
117 add_definitions(-DGLEW_STATIC)
118
119 if(WITH_LZO)
120         add_definitions(-DWITH_LZO)
121         list(APPEND INC_SYS
122                 ../../../extern/lzo/minilzo
123         )
124 endif()
125
126 if(WITH_LZMA)
127         add_definitions(-DWITH_LZMA)
128         list(APPEND INC_SYS
129                 ../../../extern/lzma
130         )
131 endif()
132
133 if(MSVC)
134         set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
135 endif()
136
137 blender_add_lib(bf_bmesh "${SRC}" "${INC}" "${INC_SYS}")