Style Cleanup:
[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_operators_private.h
94         intern/bmesh_structure.c
95         intern/bmesh_polygon.c
96         intern/bmesh_queries.c
97         intern/bmesh_opdefines.c
98         intern/bmesh_filters.c
99         intern/bmesh_eulers.c
100         intern/bmesh_operators.c
101         intern/bmesh_private.h
102         intern/bmesh_walkers.c
103         intern/bmesh_walkers_impl.c
104         intern/bmesh_walkers_private.h
105         intern/bmesh_inline.c
106         tools/BME_bevel.c
107         bmesh_error.h
108         bmesh_queries.h
109         bmesh.h
110         bmesh_marking.h
111         bmesh_operator_api.h
112         bmesh_filters.h
113         bmesh_class.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}")