svn merge -r36900:37028 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[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         ../avi
30         ../blenlib
31         ../blenloader
32         ../blenkernel
33         operators
34         intern
35         ../editors/mesh
36         ../gpu
37         ../ikplugin
38         ../imbuf
39         ../makesdna
40         ../makesrna
41         ../modifiers
42         ../nodes
43         ../editors/include
44         ../render/extern/include
45         ../../../extern/glew/include
46         ../../../intern/audaspace/intern
47         ../../../intern/bsp/extern ../blenfont
48         ../../../intern/decimation/extern
49         ../../../intern/elbeem/extern
50         ../../../intern/guardedalloc
51         ../../../intern/iksolver/extern
52         ../../../intern/memutil
53         ../../../intern/opennl/extern
54         ../../../intern/smoke/extern
55         ../../../intern/mikktspace
56     ../../../source/blender/windowmanager # XXX - BAD LEVEL CALL WM_api.h
57         ${ZLIB_INCLUDE_DIRS}
58 )
59
60 set(SRC
61         operators/bevel.c
62         operators/bmesh_dupeops.c
63         operators/utils.c
64         operators/subdivideop.c
65         operators/connectops.c
66         operators/removedoubles.c
67         operators/mirror.c
68         operators/primitiveops.c
69         operators/join_triangles.c
70         operators/edgesplitop.c
71         operators/createops.c
72         operators/dissolveops.c
73         operators/subdivideop.h
74         operators/triangulateop.c
75         operators/mesh_conv.c
76         operators/extrudeops.c
77         bmesh_operators.h
78         bmesh_iterators.h
79         intern/bmesh_newcore.c
80         intern/bmesh_interp.c
81         intern/bmesh_iterators.c
82         intern/bmesh_marking.c
83         intern/bmesh_mesh.c
84         intern/bmesh_mods.c
85         intern/bmesh_structure.h
86         intern/bmesh_construct.c
87         intern/bmesh_to_editmesh.c
88         intern/bmesh_operators_private.h
89         intern/editmesh_to_bmesh.c
90         intern/bmesh_structure.c
91         intern/bmesh_polygon.c
92         intern/bmesh_queries.c
93         intern/bmesh_opdefines.c
94         intern/bmesh_filters.c
95         intern/bmesh_eulers.c
96         intern/bmesh_operators.c
97         intern/bmesh_private.h
98         intern/bmesh_walkers.c
99         intern/bmesh_walkers_impl.c
100         intern/bmesh_walkers_private.h
101         intern/bmesh_inline.c
102         bmesh_error.h
103         bmesh_queries.h
104         bmesh.h
105         bmesh_marking.h
106         bmesh_operator_api.h
107         bmesh_filters.h
108         bmesh_class.h
109         bmesh_walkers.h
110 )
111
112 add_definitions(-DGLEW_STATIC)
113
114 if(WITH_LZO)
115         list(APPEND INC ../../../extern/lzo/minilzo)
116         add_definitions(-DWITH_LZO)
117 endif()
118
119 if(WITH_LZMA)
120         list(APPEND INC ../../../extern/lzma)
121         add_definitions(-DWITH_LZMA)
122 endif()
123
124 if(MSVC)
125     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
126 endif()
127
128 blender_add_lib(bf_bmesh "${SRC}" "${INC}")