feeda03773b88a6be78c70ca50a2a851ead2d744
[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_INC}
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/modifier.c
109         intern/multires.c
110         intern/nla.c
111         intern/node.c
112         intern/object.c
113         intern/packedFile.c
114         intern/paint.c
115         intern/particle.c
116         intern/particle_system.c
117         intern/pointcache.c
118         intern/property.c
119         intern/report.c
120         intern/sca.c
121         intern/scene.c
122         intern/screen.c
123         intern/script.c
124         intern/seqcache.c
125         intern/seqeffects.c
126         intern/sequencer.c
127         intern/shrinkwrap.c
128         intern/sketch.c
129         intern/smoke.c
130         intern/softbody.c
131         intern/sound.c
132         intern/subsurf_ccg.c
133         intern/suggestions.c
134         intern/text.c
135         intern/texture.c
136         intern/unit.c
137         intern/world.c
138         intern/writeavi.c
139         intern/writeffmpeg.c
140         intern/writeframeserver.c
141
142         BKE_DerivedMesh.h
143         BKE_action.h
144         BKE_anim.h
145         BKE_animsys.h
146         BKE_armature.h
147         BKE_blender.h
148         BKE_bmesh.h
149         BKE_bmeshCustomData.h
150         BKE_bmfont.h
151         BKE_bmfont_types.h
152         BKE_boids.h
153         BKE_booleanops_mesh.h
154         BKE_brush.h
155         BKE_bullet.h
156         BKE_bvhutils.h
157         BKE_cdderivedmesh.h
158         BKE_cloth.h
159         BKE_collision.h
160         BKE_colortools.h
161         BKE_constraint.h
162         BKE_context.h
163         BKE_curve.h
164         BKE_customdata.h
165         BKE_customdata_file.h
166         BKE_deform.h
167         BKE_depsgraph.h
168         BKE_displist.h
169         BKE_effect.h
170         BKE_endian.h
171         BKE_exotic.h
172         BKE_fcurve.h
173         BKE_fluidsim.h
174         BKE_font.h
175         BKE_global.h
176         BKE_gpencil.h
177         BKE_group.h
178         BKE_icons.h
179         BKE_idcode.h
180         BKE_idprop.h
181         BKE_image.h
182         BKE_ipo.h
183         BKE_key.h
184         BKE_lattice.h
185         BKE_library.h
186         BKE_main.h
187         BKE_material.h
188         BKE_mball.h
189         BKE_mesh.h
190         BKE_modifier.h
191         BKE_multires.h
192         BKE_nla.h
193         BKE_node.h
194         BKE_object.h
195         BKE_packedFile.h
196         BKE_paint.h
197         BKE_particle.h
198         BKE_plugin_types.h
199         BKE_pointcache.h
200         BKE_property.h
201         BKE_report.h
202         BKE_sca.h
203         BKE_scene.h
204         BKE_screen.h
205         BKE_script.h
206         BKE_sequencer.h
207         BKE_shrinkwrap.h
208         BKE_sketch.h
209         BKE_smoke.h
210         BKE_softbody.h
211         BKE_sound.h
212         BKE_subsurf.h
213         BKE_suggestions.h
214         BKE_text.h
215         BKE_texture.h
216         BKE_unit.h
217         BKE_utildefines.h
218         BKE_world.h
219         BKE_writeavi.h
220         BKE_writeffmpeg.h
221         BKE_writeframeserver.h
222         depsgraph_private.h
223         intern/CCGSubSurf.h
224         intern/bmesh_private.h
225         nla_private.h
226 )
227
228 add_definitions(-DGLEW_STATIC)
229
230 if(WITH_BULLET)
231         list(APPEND INC ../../../extern/bullet2/src)
232         add_definitions(-DUSE_BULLET)
233 endif()
234
235 if(WITH_IMAGE_OPENEXR)
236         add_definitions(-DWITH_OPENEXR)
237 endif()
238
239 if(WITH_IMAGE_TIFF)
240         add_definitions(-DWITH_TIFF)
241 endif()
242
243 if(WITH_IMAGE_OPENJPEG)
244         add_definitions(-DWITH_OPENJPEG)
245 endif()
246
247 if(WITH_IMAGE_DDS)
248         add_definitions(-DWITH_DDS)
249 endif()
250
251 if(WITH_IMAGE_CINEON)
252         add_definitions(-DWITH_CINEON)
253 endif()
254
255 if(WITH_IMAGE_HDR)
256         add_definitions(-DWITH_HDR)
257 endif()
258
259 if(WITH_CODEC_QUICKTIME)
260         list(APPEND INC ../quicktime ${QUICKTIME_INC})
261         add_definitions(-DWITH_QUICKTIME)
262 endif()
263
264 if(WITH_CODEC_FFMPEG)
265         list(APPEND INC ${FFMPEG_INC})
266         add_definitions(-DWITH_FFMPEG)
267 endif()
268
269 if(WITH_LCMS)
270         list(APPEND INC ${LCMS_INCLUDE_DIR})
271         add_definitions(-DWITH_LCMS)
272 endif()
273
274 if(WITH_PYTHON)
275         list(APPEND INC ../python ${PYTHON_INC})
276         add_definitions(-DWITH_PYTHON)
277 endif()
278
279 if(WITH_OPENMP)
280         add_definitions(-DPARALLEL=1)
281 endif()
282
283 if(NOT WITH_MOD_FLUID)
284         add_definitions(-DDISABLE_ELBEEM)
285 endif()
286
287 if(WITH_JACK)
288         add_definitions(-DWITH_JACK)
289 endif()
290
291 if(WITH_LZO)
292         list(APPEND INC ../../../extern/lzo/minilzo)
293         add_definitions(-DWITH_LZO)
294 endif()
295
296 if(WITH_LZMA)
297         list(APPEND INC ../../../extern/lzma)
298         add_definitions(-DWITH_LZMA)
299 endif()
300
301 if(MSVC)
302     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
303 endif()
304
305 blenderlib(bf_blenkernel "${SRC}" "${INC}")