svn merge -r37028:37030 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 )
58
59 set(INC_SYS
60         ${ZLIB_INCLUDE_DIRS}
61 )
62
63 set(SRC
64         operators/bevel.c
65         operators/bmesh_dupeops.c
66         operators/utils.c
67         operators/subdivideop.c
68         operators/connectops.c
69         operators/removedoubles.c
70         operators/mirror.c
71         operators/primitiveops.c
72         operators/join_triangles.c
73         operators/edgesplitop.c
74         operators/createops.c
75         operators/dissolveops.c
76         operators/subdivideop.h
77         operators/triangulateop.c
78         operators/mesh_conv.c
79         operators/extrudeops.c
80         bmesh_operators.h
81         bmesh_iterators.h
82         intern/bmesh_newcore.c
83         intern/bmesh_interp.c
84         intern/bmesh_iterators.c
85         intern/bmesh_marking.c
86         intern/bmesh_mesh.c
87         intern/bmesh_mods.c
88         intern/bmesh_structure.h
89         intern/bmesh_construct.c
90         intern/bmesh_to_editmesh.c
91         intern/bmesh_operators_private.h
92         intern/editmesh_to_bmesh.c
93         intern/bmesh_structure.c
94         intern/bmesh_polygon.c
95         intern/bmesh_queries.c
96         intern/bmesh_opdefines.c
97         intern/bmesh_filters.c
98         intern/bmesh_eulers.c
99         intern/bmesh_operators.c
100         intern/bmesh_private.h
101         intern/bmesh_walkers.c
102         intern/bmesh_walkers_impl.c
103         intern/bmesh_walkers_private.h
104         intern/bmesh_inline.c
105         bmesh_error.h
106         bmesh_queries.h
107         bmesh.h
108         bmesh_marking.h
109         bmesh_operator_api.h
110         bmesh_filters.h
111         bmesh_class.h
112         bmesh_walkers.h
113 )
114
115 add_definitions(-DGLEW_STATIC)
116
117 if(WITH_LZO)
118         list(APPEND INC_SYS ../../../extern/lzo/minilzo)
119         add_definitions(-DWITH_LZO)
120 endif()
121
122 if(WITH_LZMA)
123         list(APPEND INC_SYS ../../../extern/lzma)
124         add_definitions(-DWITH_LZMA)
125 endif()
126
127 if(MSVC)
128     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
129 endif()
130
131 blender_add_lib(bf_bmesh "${SRC}" "${INC}" "${INC_SYS}")