26e29c9ac04c25e288130ed61c4fcf82dfaf47bf
[blender-staging.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/bevel.c
67         operators/bmesh_dupeops.c
68         operators/utils.c
69         operators/subdivideop.c
70         operators/connectops.c
71         operators/removedoubles.c
72         operators/mirror.c
73         operators/primitiveops.c
74         operators/join_triangles.c
75         operators/edgesplitop.c
76         operators/createops.c
77         operators/dissolveops.c
78         operators/subdivideop.h
79         operators/triangulateop.c
80         operators/mesh_conv.c
81         operators/extrudeops.c
82         bmesh_operators.h
83         bmesh_iterators.h
84         intern/bmesh_newcore.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_structure.h
92         intern/bmesh_construct.c
93         intern/bmesh_to_editmesh.c
94         intern/bmesh_operators_private.h
95         intern/editmesh_to_bmesh.c
96         intern/bmesh_structure.c
97         intern/bmesh_polygon.c
98         intern/bmesh_queries.c
99         intern/bmesh_opdefines.c
100         intern/bmesh_filters.c
101         intern/bmesh_eulers.c
102         intern/bmesh_operators.c
103         intern/bmesh_private.h
104         intern/bmesh_walkers.c
105         intern/bmesh_walkers_impl.c
106         intern/bmesh_walkers_private.h
107         intern/bmesh_inline.c
108         tools/BME_bevel.c
109         bmesh_error.h
110         bmesh_queries.h
111         bmesh.h
112         bmesh_marking.h
113         bmesh_operator_api.h
114         bmesh_filters.h
115         bmesh_class.h
116         bmesh_walkers.h
117 )
118
119 add_definitions(-DGLEW_STATIC)
120
121 if(WITH_LZO)
122         add_definitions(-DWITH_LZO)
123         list(APPEND INC_SYS
124                 ../../../extern/lzo/minilzo
125         )
126 endif()
127
128 if(WITH_LZMA)
129         add_definitions(-DWITH_LZMA)
130         list(APPEND INC_SYS
131                 ../../../extern/lzma
132         )
133 endif()
134
135 if(MSVC)
136         set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
137 endif()
138
139 blender_add_lib(bf_bmesh "${SRC}" "${INC}" "${INC_SYS}")