Cycles / Sky Texture:
[blender.git] / source / blender / blenkernel / CMakeLists.txt
1 # ***** BEGIN GPL LICENSE BLOCK *****
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 #
17 # The Original Code is Copyright (C) 2006, Blender Foundation
18 # All rights reserved.
19 #
20 # The Original Code is: all of this file.
21 #
22 # Contributor(s): Jacques Beaurain.
23 #
24 # ***** END GPL LICENSE BLOCK *****
25
26 set(INC
27         .
28         ../blenfont
29         ../blenlib
30         ../blenloader
31         ../gpu
32         ../ikplugin
33         ../imbuf
34         ../makesdna
35         ../makesrna
36         ../bmesh
37         ../modifiers
38         ../nodes
39         ../render/extern/include
40         ../../../intern/guardedalloc
41         ../../../intern/iksolver/extern
42         ../../../intern/memutil
43         ../../../intern/mikktspace
44         ../../../intern/opennl/extern
45         ../../../intern/raskter
46         ../../../intern/smoke/extern
47         ../../../extern/libmv
48         ../../../intern/atomic
49
50         # XXX - BAD LEVEL CALL WM_api.h
51         ../windowmanager
52 )
53
54 set(INC_SYS
55         ${GLEW_INCLUDE_PATH}
56         ${ZLIB_INCLUDE_DIRS}
57 )
58
59 set(SRC
60         intern/CCGSubSurf.c
61         intern/DerivedMesh.c
62         intern/action.c
63         intern/addon.c
64         intern/anim.c
65         intern/anim_sys.c
66         intern/armature.c
67         intern/autoexec.c
68         intern/blender.c
69         intern/bmfont.c
70         intern/boids.c
71         intern/bpath.c
72         intern/brush.c
73         intern/bullet.c
74         intern/bvhutils.c
75         intern/camera.c
76         intern/cdderivedmesh.c
77         intern/cloth.c
78         intern/collision.c
79         intern/colortools.c
80         intern/constraint.c
81         intern/context.c
82         intern/curve.c
83         intern/customdata.c
84         intern/customdata_file.c
85         intern/deform.c
86         intern/depsgraph.c
87         intern/displist.c
88         intern/dynamicpaint.c
89         intern/editderivedmesh.c
90         intern/editmesh.c
91         intern/editmesh_bvh.c
92         intern/effect.c
93         intern/fcurve.c
94         intern/fluidsim.c
95         intern/fmodifier.c
96         intern/font.c
97         intern/freestyle.c
98         intern/gpencil.c
99         intern/group.c
100         intern/icons.c
101         intern/idcode.c
102         intern/idprop.c
103         intern/image.c
104         intern/image_gen.c
105         intern/implicit.c
106         intern/ipo.c
107         intern/key.c
108         intern/lamp.c
109         intern/lattice.c
110         intern/library.c
111         intern/linestyle.c
112         intern/mask.c
113         intern/mask_evaluate.c
114         intern/mask_rasterize.c
115         intern/material.c
116         intern/mball.c
117         intern/mesh.c
118         intern/mesh_validate.c
119         intern/modifier.c
120         intern/modifiers_bmesh.c
121         intern/movieclip.c
122         intern/multires.c
123         intern/nla.c
124         intern/node.c
125         intern/object.c
126         intern/object_deform.c
127         intern/ocean.c
128         intern/packedFile.c
129         intern/paint.c
130         intern/particle.c
131         intern/particle_system.c
132         intern/pbvh.c
133         intern/pbvh_bmesh.c
134         intern/pointcache.c
135         intern/property.c
136         intern/report.c
137         intern/rigidbody.c
138         intern/sca.c
139         intern/scene.c
140         intern/screen.c
141         intern/seqcache.c
142         intern/seqeffects.c
143         intern/seqmodifier.c
144         intern/sequencer.c
145         intern/shrinkwrap.c
146         intern/sketch.c
147         intern/smoke.c
148         intern/softbody.c
149         intern/sound.c
150         intern/speaker.c
151         intern/subsurf_ccg.c
152         intern/suggestions.c
153         intern/text.c
154         intern/texture.c
155         intern/tracking.c
156         intern/treehash.c
157         intern/unit.c
158         intern/world.c
159         intern/writeavi.c
160         intern/writeframeserver.c
161
162         BKE_DerivedMesh.h
163         BKE_action.h
164         BKE_addon.h
165         BKE_anim.h
166         BKE_animsys.h
167         BKE_armature.h
168         BKE_autoexec.h
169         BKE_blender.h
170         BKE_bmfont.h
171         BKE_bmfont_types.h
172         BKE_boids.h
173         BKE_bpath.h
174         BKE_brush.h
175         BKE_bullet.h
176         BKE_bvhutils.h
177         BKE_camera.h
178         BKE_ccg.h
179         BKE_cdderivedmesh.h
180         BKE_cloth.h
181         BKE_collision.h
182         BKE_colortools.h
183         BKE_constraint.h
184         BKE_context.h
185         BKE_curve.h
186         BKE_customdata.h
187         BKE_customdata_file.h
188         BKE_deform.h
189         BKE_depsgraph.h
190         BKE_displist.h
191         BKE_dynamicpaint.h
192         BKE_effect.h
193         BKE_fcurve.h
194         BKE_fluidsim.h
195         BKE_font.h
196         BKE_freestyle.h
197         BKE_global.h
198         BKE_gpencil.h
199         BKE_group.h
200         BKE_icons.h
201         BKE_idcode.h
202         BKE_idprop.h
203         BKE_image.h
204         BKE_ipo.h
205         BKE_key.h
206         BKE_lamp.h
207         BKE_lattice.h
208         BKE_library.h
209         BKE_linestyle.h
210         BKE_main.h
211         BKE_mask.h
212         BKE_material.h
213         BKE_mball.h
214         BKE_mesh.h
215         BKE_modifier.h
216         BKE_movieclip.h
217         BKE_multires.h
218         BKE_nla.h
219         BKE_node.h
220         BKE_object.h
221         BKE_object_deform.h
222         BKE_ocean.h
223         BKE_packedFile.h
224         BKE_paint.h
225         BKE_particle.h
226         BKE_pbvh.h
227         BKE_pointcache.h
228         BKE_property.h
229         BKE_report.h
230         BKE_rigidbody.h
231         BKE_sca.h
232         BKE_scene.h
233         BKE_screen.h
234         BKE_sequencer.h
235         BKE_shrinkwrap.h
236         BKE_sketch.h
237         BKE_smoke.h
238         BKE_softbody.h
239         BKE_sound.h
240         BKE_speaker.h
241         BKE_subsurf.h
242         BKE_suggestions.h
243         BKE_editmesh.h
244         BKE_editmesh_bvh.h
245         BKE_text.h
246         BKE_texture.h
247         BKE_tracking.h
248         BKE_treehash.h
249         BKE_unit.h
250         BKE_utildefines.h
251         BKE_world.h
252         BKE_writeavi.h
253         BKE_writeframeserver.h
254
255         depsgraph_private.h
256         nla_private.h
257         intern/CCGSubSurf.h
258         intern/pbvh_intern.h
259 )
260
261 add_definitions(-DGLEW_STATIC)
262
263 if(WITH_AUDASPACE)
264         list(APPEND INC
265                 ../../../intern/audaspace/intern
266         )
267         add_definitions(-DWITH_AUDASPACE)
268 endif()
269
270 if(WITH_BULLET)
271         list(APPEND INC_SYS
272                 ${BULLET_INCLUDE_DIRS}
273         )
274         list(APPEND INC
275                 ../../../intern/rigidbody
276         )
277         add_definitions(-DWITH_BULLET)
278 endif()
279
280 #if(WITH_MOD_CLOTH_ELTOPO)
281 #       list(APPEND INC
282 #               ../../../extern/eltopo
283 #               ../../../extern/eltopo/eltopo3d
284 #       )
285 #       add_definitions(-DWITH_ELTOPO)
286 #endif()
287
288 if(WITH_IMAGE_OPENEXR)
289         add_definitions(-DWITH_OPENEXR)
290 endif()
291
292 if(WITH_IMAGE_TIFF)
293         add_definitions(-DWITH_TIFF)
294 endif()
295
296 if(WITH_IMAGE_OPENJPEG)
297         add_definitions(-DWITH_OPENJPEG)
298 endif()
299
300 if(WITH_IMAGE_DDS)
301         add_definitions(-DWITH_DDS)
302 endif()
303
304 if(WITH_IMAGE_CINEON)
305         add_definitions(-DWITH_CINEON)
306 endif()
307
308 if(WITH_IMAGE_FRAMESERVER)
309         add_definitions(-DWITH_FRAMESERVER)
310 endif()
311
312 if(WITH_IMAGE_HDR)
313         add_definitions(-DWITH_HDR)
314 endif()
315
316 if(WITH_CODEC_AVI)
317         list(APPEND INC
318                 ../avi
319         )
320         add_definitions(-DWITH_AVI)
321 endif()
322
323 if(WITH_CODEC_QUICKTIME)
324         list(APPEND INC
325                 ../quicktime
326         )
327         list(APPEND INC_SYS
328                 ${QUICKTIME_INCLUDE_DIRS}
329         )
330         add_definitions(-DWITH_QUICKTIME)
331 endif()
332
333 if(WITH_CODEC_FFMPEG)
334         list(APPEND SRC
335                 intern/writeffmpeg.c
336                 BKE_writeffmpeg.h
337         )
338         list(APPEND INC
339                 ../../../intern/ffmpeg
340         )
341         list(APPEND INC_SYS
342                 ${FFMPEG_INCLUDE_DIRS}
343         )
344         add_definitions(-DWITH_FFMPEG)
345
346         remove_strict_flags_file(
347                 intern/writeffmpeg.c
348         )
349 endif()
350
351 if(WITH_PYTHON)
352         list(APPEND INC
353                 ../python
354         )
355         add_definitions(-DWITH_PYTHON)
356
357         if(WITH_PYTHON_SECURITY)
358                 add_definitions(-DWITH_PYTHON_SECURITY)
359         endif()
360 endif()
361
362 if(WITH_MOD_FLUID)
363         list(APPEND INC
364                 ../../../intern/elbeem/extern
365         )
366         add_definitions(-DWITH_MOD_FLUID)
367 endif()
368
369 if(WITH_MOD_SMOKE)
370         add_definitions(-DWITH_SMOKE)
371 endif()
372
373 if(WITH_MOD_OCEANSIM)
374         add_definitions(-DWITH_OCEANSIM)
375 endif()
376
377 if(WITH_MOD_BOOLEAN)
378         list(APPEND INC
379                 ../../../intern/bsp/extern
380         )
381 endif()
382
383 if(WITH_JACK)
384         add_definitions(-DWITH_JACK)
385 endif()
386
387 if(WITH_LZO)
388         list(APPEND INC_SYS
389                 ../../../extern/lzo/minilzo
390         )
391         add_definitions(-DWITH_LZO)
392 endif()
393
394 if(WITH_LZMA)
395         list(APPEND INC_SYS
396                 ../../../extern/lzma
397         )
398         add_definitions(-DWITH_LZMA)
399 endif()
400
401 if(WITH_GAMEENGINE)
402         list(APPEND INC_SYS
403                 ../../../extern/recastnavigation
404         )
405         list(APPEND SRC
406                 intern/navmesh_conversion.c
407                 BKE_navmesh_conversion.h
408         )
409
410         add_definitions(-DWITH_GAMEENGINE)
411 endif()
412
413 if(WITH_LIBMV)
414         add_definitions(-DWITH_LIBMV)
415 endif()
416
417 if(WITH_FFTW3)
418         list(APPEND INC_SYS
419                 ${FFTW3_INCLUDE_DIRS}
420         )
421         add_definitions(-DFFTW3=1)
422 endif()
423
424 if(WITH_INTERNATIONAL)
425         add_definitions(-DWITH_INTERNATIONAL)
426 endif()
427
428 if(WITH_FREESTYLE)
429         add_definitions(-DWITH_FREESTYLE)
430 endif()
431
432 ## Warnings as errors, this is too strict!
433 #if(MSVC)
434 #       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
435 #endif()
436
437 blender_add_lib(bf_blenkernel "${SRC}" "${INC}" "${INC_SYS}")