=bmesh= merge from trunk at r36529
[blender.git] / source / blender / blenkernel / CMakeLists.txt
1 # $Id$
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 if(WITH_CODEC_FFMPEG)
28         # FFMPEG gives warnigns which are hard to avoid across multiple versions.
29         remove_strict_flags()
30 endif()
31
32 set(INC 
33         .
34         ../avi
35         ../blenlib
36         ../blenloader
37         ../gpu
38         ../ikplugin
39         ../imbuf
40         ../makesdna
41         ../makesrna
42         ../bmesh
43         ../modifiers
44         ../nodes
45         ../editors/include
46         ../render/extern/include
47         ../../../intern/audaspace/intern
48         ../../../intern/bsp/extern ../blenfont
49         ../../../intern/decimation/extern
50         ../../../intern/elbeem/extern
51         ../../../intern/guardedalloc
52         ../../../intern/iksolver/extern
53         ../../../intern/memutil
54         ../../../intern/opennl/extern
55         ../../../intern/smoke/extern
56         ../../../intern/mikktspace
57     ../../../source/blender/windowmanager # XXX - BAD LEVEL CALL WM_api.h
58         ${GLEW_INCLUDE_PATH}
59         ${ZLIB_INCLUDE_DIRS}
60 )
61
62 set(SRC
63         intern/BME_Customdata.c
64         intern/BME_conversions.c
65         intern/BME_eulers.c
66         intern/BME_mesh.c
67         intern/BME_structure.c
68         intern/BME_tools.c
69         intern/CCGSubSurf.c
70         intern/DerivedMesh.c
71         intern/action.c
72         intern/anim.c
73         intern/anim_sys.c
74         intern/armature.c
75         intern/blender.c
76         intern/bmfont.c
77         intern/boids.c
78         intern/booleanops_mesh.c
79         intern/brush.c
80         intern/bullet.c
81         intern/bvhutils.c
82         intern/cdderivedmesh.c
83         intern/cloth.c
84         intern/collision.c
85         intern/colortools.c
86         intern/constraint.c
87         intern/context.c
88         intern/curve.c
89         intern/customdata.c
90         intern/customdata_file.c
91         intern/deform.c
92         intern/depsgraph.c
93         intern/displist.c
94         intern/effect.c
95         intern/editderivedbmesh.c
96         intern/fcurve.c
97         intern/fluidsim.c
98         intern/fmodifier.c
99         intern/font.c
100         intern/gpencil.c
101         intern/group.c
102         intern/icons.c
103         intern/idcode.c
104         intern/idprop.c
105         intern/image.c
106         intern/image_gen.c
107         intern/implicit.c
108         intern/ipo.c
109         intern/key.c
110         intern/lattice.c
111         intern/library.c
112         intern/material.c
113         intern/mball.c
114         intern/mesh.c
115         intern/mesh_validate.c
116         intern/modifier.c
117         intern/modifiers_bmesh.c
118         intern/multires.c
119         intern/nla.c
120         intern/node.c
121         intern/object.c
122         intern/packedFile.c
123         intern/paint.c
124         intern/particle.c
125         intern/particle_system.c
126         intern/pointcache.c
127         intern/property.c
128         intern/report.c
129         intern/sca.c
130         intern/scene.c
131         intern/screen.c
132         intern/script.c
133         intern/seqcache.c
134         intern/seqeffects.c
135         intern/sequencer.c
136         intern/shrinkwrap.c
137         intern/sketch.c
138         intern/smoke.c
139         intern/softbody.c
140         intern/sound.c
141         intern/subsurf_ccg.c
142         intern/suggestions.c
143         intern/text.c
144         intern/texture.c
145         intern/unit.c
146         intern/world.c
147         intern/writeavi.c
148         intern/writeffmpeg.c
149         intern/writeframeserver.c
150         
151         BKE_DerivedMesh.h
152         BKE_action.h
153         BKE_anim.h
154         BKE_animsys.h
155         BKE_armature.h
156         BKE_array_mallocn.h
157         BKE_blender.h
158         BKE_bmesh.h
159         BKE_bmeshCustomData.h
160         BKE_bmfont.h
161         BKE_bmfont_types.h
162         BKE_boids.h
163         BKE_booleanops_mesh.h
164         BKE_brush.h
165         BKE_bullet.h
166         BKE_bvhutils.h
167         BKE_cdderivedmesh.h
168         BKE_cloth.h
169         BKE_collision.h
170         BKE_colortools.h
171         BKE_constraint.h
172         BKE_context.h
173         BKE_curve.h
174         BKE_customdata.h
175         BKE_customdata_file.h
176         BKE_deform.h
177         BKE_depsgraph.h
178         BKE_displist.h
179         BKE_effect.h
180         BKE_endian.h
181         BKE_fcurve.h
182         BKE_fluidsim.h
183         BKE_font.h
184         BKE_global.h
185         BKE_gpencil.h
186         BKE_group.h
187         BKE_icons.h
188         BKE_idcode.h
189         BKE_idprop.h
190         BKE_image.h
191         BKE_ipo.h
192         BKE_key.h
193         BKE_lattice.h
194         BKE_library.h
195         BKE_main.h
196         BKE_material.h
197         BKE_mball.h
198         BKE_mesh.h
199         BKE_modifier.h
200         BKE_multires.h
201         BKE_nla.h
202         BKE_node.h
203         BKE_object.h
204         BKE_packedFile.h
205         BKE_paint.h
206         BKE_particle.h
207         BKE_plugin_types.h
208         BKE_pointcache.h
209         BKE_property.h
210         BKE_report.h
211         BKE_sca.h
212         BKE_scene.h
213         BKE_screen.h
214         BKE_script.h
215         BKE_sequencer.h
216         BKE_shrinkwrap.h
217         BKE_sketch.h
218         BKE_smoke.h
219         BKE_softbody.h
220         BKE_sound.h
221         BKE_subsurf.h
222         BKE_suggestions.h
223         BKE_text.h
224         BKE_texture.h
225         BKE_unit.h
226         BKE_utildefines.h
227         BKE_world.h
228         BKE_writeavi.h
229         BKE_writeffmpeg.h
230         BKE_writeframeserver.h
231         depsgraph_private.h
232         intern/CCGSubSurf.h
233         intern/bmesh_private.h
234         nla_private.h
235 )
236
237 add_definitions(-DGLEW_STATIC)
238
239 if(WITH_BULLET)
240         list(APPEND INC ../../../extern/bullet2/src)
241         add_definitions(-DUSE_BULLET)
242 endif()
243
244 if(WITH_MOD_CLOTH_ELTOPO)
245         list(APPEND INC ../../../extern/eltopo)
246         add_definitions(-DWITH_ELTOPO)
247 endif()
248
249 if(WITH_IMAGE_OPENEXR)
250         add_definitions(-DWITH_OPENEXR)
251 endif()
252
253 if(WITH_IMAGE_TIFF)
254         add_definitions(-DWITH_TIFF)
255 endif()
256
257 if(WITH_IMAGE_OPENJPEG)
258         add_definitions(-DWITH_OPENJPEG)
259 endif()
260
261 if(WITH_IMAGE_DDS)
262         add_definitions(-DWITH_DDS)
263 endif()
264
265 if(WITH_IMAGE_CINEON)
266         add_definitions(-DWITH_CINEON)
267 endif()
268
269 if(WITH_IMAGE_HDR)
270         add_definitions(-DWITH_HDR)
271 endif()
272
273 if(WITH_CODEC_QUICKTIME)
274         list(APPEND INC ../quicktime ${QUICKTIME_INC})
275         add_definitions(-DWITH_QUICKTIME)
276 endif()
277
278 if(WITH_CODEC_FFMPEG)
279         list(APPEND INC ${FFMPEG_INC})
280         add_definitions(-DWITH_FFMPEG)
281 endif()
282
283 if(WITH_LCMS)
284         list(APPEND INC ${LCMS_INCLUDE_DIR})
285         add_definitions(-DWITH_LCMS)
286 endif()
287
288 if(WITH_PYTHON)
289         list(APPEND INC ../python ${PYTHON_INCLUDE_DIRS})
290         add_definitions(-DWITH_PYTHON)
291
292         if(WITH_PYTHON_SECURITY)
293                 add_definitions(-DWITH_PYTHON_SECURITY)
294         endif()
295 endif()
296
297 if(WITH_OPENMP)
298         add_definitions(-DPARALLEL=1)
299 endif()
300
301 if(NOT WITH_MOD_FLUID)
302         add_definitions(-DDISABLE_ELBEEM)
303 endif()
304
305 if(WITH_JACK)
306         add_definitions(-DWITH_JACK)
307 endif()
308
309 if(WITH_LZO)
310         list(APPEND INC ../../../extern/lzo/minilzo)
311         add_definitions(-DWITH_LZO)
312 endif()
313
314 if(WITH_LZMA)
315         list(APPEND INC ../../../extern/lzma)
316         add_definitions(-DWITH_LZMA)
317 endif()
318
319 if(MSVC)
320     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
321 endif()
322
323 blender_add_lib(bf_blenkernel "${SRC}" "${INC}")