merge with/from trunk at r35190
[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         ../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/bmesh_dupeops.c
62         operators/utils.c
63         operators/subdivideop.c
64         operators/connectops.c
65         operators/removedoubles.c
66         operators/mirror.c
67         operators/primitiveops.c
68         operators/join_triangles.c
69         operators/edgesplitop.c
70         operators/createops.c
71         operators/dissolveops.c
72         operators/subdivideop.h
73         operators/triangulateop.c
74         operators/mesh_conv.c
75         operators/extrudeops.c
76         bmesh_operators.h
77         bmesh_iterators.h
78         intern/bmesh_newcore.c
79         intern/bmesh_interp.c
80         intern/bmesh_iterators.c
81         intern/bmesh_marking.c
82         intern/bmesh_mesh.c
83         intern/bmesh_mods.c
84         intern/bmesh_structure.h
85         intern/bmesh_construct.c
86         intern/bmesh_walkers.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         bmesh_error.h
99         bmesh_queries.h
100         bmesh.h
101         bmesh_marking.h
102         bmesh_operator_api.h
103         bmesh_filters.h
104         bmesh_class.h
105         bmesh_walkers.h
106 )
107
108 add_definitions(-DGLEW_STATIC)
109
110 if(WITH_LZO)
111         list(APPEND INC ../../../extern/lzo/minilzo)
112         add_definitions(-DWITH_LZO)
113 endif()
114
115 if(WITH_LZMA)
116         list(APPEND INC ../../../extern/lzma)
117         add_definitions(-DWITH_LZMA)
118 endif()
119
120 if(MSVC)
121     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
122 endif()
123
124 blender_add_lib(bf_bmesh "${SRC}" "${INC}")