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