Cleanup: rename BKE's 'object_data_transfer' to 'data_transfer' to avoid same file...
[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/ghost
41         ../../../intern/guardedalloc
42         ../../../intern/glew-mx
43         ../../../intern/iksolver/extern
44         ../../../intern/memutil
45         ../../../intern/mikktspace
46         ../../../intern/raskter
47         ../../../intern/smoke/extern
48         ../../../extern/libmv
49         ../../../intern/atomic
50
51         # XXX - BAD LEVEL CALL WM_api.h
52         ../windowmanager
53 )
54
55 set(INC_SYS
56         ${GLEW_INCLUDE_PATH}
57         ${ZLIB_INCLUDE_DIRS}
58 )
59
60 set(SRC
61         intern/CCGSubSurf.c
62         intern/DerivedMesh.c
63         intern/action.c
64         intern/addon.c
65         intern/anim.c
66         intern/anim_sys.c
67         intern/appdir.c
68         intern/armature.c
69         intern/autoexec.c
70         intern/blender.c
71         intern/bmfont.c
72         intern/boids.c
73         intern/bpath.c
74         intern/brush.c
75         intern/bullet.c
76         intern/bvhutils.c
77         intern/camera.c
78         intern/cdderivedmesh.c
79         intern/cloth.c
80         intern/collision.c
81         intern/colortools.c
82         intern/constraint.c
83         intern/context.c
84         intern/crazyspace.c
85         intern/curve.c
86         intern/customdata.c
87         intern/customdata_file.c
88         intern/data_transfer.c
89         intern/deform.c
90         intern/depsgraph.c
91         intern/displist.c
92         intern/dynamicpaint.c
93         intern/editderivedmesh.c
94         intern/editmesh.c
95         intern/editmesh_bvh.c
96         intern/effect.c
97         intern/fcurve.c
98         intern/fluidsim.c
99         intern/fmodifier.c
100         intern/font.c
101         intern/freestyle.c
102         intern/gpencil.c
103         intern/group.c
104         intern/icons.c
105         intern/idcode.c
106         intern/idprop.c
107         intern/image.c
108         intern/image_gen.c
109         intern/implicit.c
110         intern/ipo.c
111         intern/key.c
112         intern/lamp.c
113         intern/lattice.c
114         intern/library.c
115         intern/library_query.c
116         intern/linestyle.c
117         intern/mask.c
118         intern/mask_evaluate.c
119         intern/mask_rasterize.c
120         intern/material.c
121         intern/mball.c
122         intern/mesh.c
123         intern/mesh_evaluate.c
124         intern/mesh_mapping.c
125         intern/mesh_remap.c
126         intern/mesh_validate.c
127         intern/modifier.c
128         intern/modifiers_bmesh.c
129         intern/movieclip.c
130         intern/multires.c
131         intern/nla.c
132         intern/node.c
133         intern/object.c
134         intern/object_deform.c
135         intern/object_dupli.c
136         intern/ocean.c
137         intern/packedFile.c
138         intern/paint.c
139         intern/particle.c
140         intern/particle_system.c
141         intern/pbvh.c
142         intern/pbvh_bmesh.c
143         intern/pointcache.c
144         intern/property.c
145         intern/report.c
146         intern/rigidbody.c
147         intern/sca.c
148         intern/scene.c
149         intern/screen.c
150         intern/seqcache.c
151         intern/seqeffects.c
152         intern/seqmodifier.c
153         intern/sequencer.c
154         intern/shrinkwrap.c
155         intern/sketch.c
156         intern/smoke.c
157         intern/softbody.c
158         intern/sound.c
159         intern/speaker.c
160         intern/subsurf_ccg.c
161         intern/suggestions.c
162         intern/text.c
163         intern/texture.c
164         intern/tracking.c
165         intern/tracking_auto.c
166         intern/tracking_detect.c
167         intern/tracking_plane_tracker.c
168         intern/tracking_region_tracker.c
169         intern/tracking_solver.c
170         intern/tracking_stabilize.c
171         intern/tracking_util.c
172         intern/treehash.c
173         intern/unit.c
174         intern/world.c
175         intern/writeavi.c
176         intern/writeframeserver.c
177
178         BKE_DerivedMesh.h
179         BKE_action.h
180         BKE_addon.h
181         BKE_anim.h
182         BKE_animsys.h
183         BKE_appdir.h
184         BKE_armature.h
185         BKE_autoexec.h
186         BKE_blender.h
187         BKE_bmfont.h
188         BKE_bmfont_types.h
189         BKE_boids.h
190         BKE_bpath.h
191         BKE_brush.h
192         BKE_bullet.h
193         BKE_bvhutils.h
194         BKE_camera.h
195         BKE_ccg.h
196         BKE_cdderivedmesh.h
197         BKE_cloth.h
198         BKE_collision.h
199         BKE_colortools.h
200         BKE_constraint.h
201         BKE_context.h
202         BKE_crazyspace.h
203         BKE_curve.h
204         BKE_customdata.h
205         BKE_customdata_file.h
206         BKE_data_transfer.h
207         BKE_deform.h
208         BKE_depsgraph.h
209         BKE_displist.h
210         BKE_dynamicpaint.h
211         BKE_effect.h
212         BKE_fcurve.h
213         BKE_fluidsim.h
214         BKE_font.h
215         BKE_freestyle.h
216         BKE_global.h
217         BKE_gpencil.h
218         BKE_group.h
219         BKE_icons.h
220         BKE_idcode.h
221         BKE_idprop.h
222         BKE_image.h
223         BKE_ipo.h
224         BKE_key.h
225         BKE_lamp.h
226         BKE_lattice.h
227         BKE_library.h
228         BKE_library_query.h
229         BKE_linestyle.h
230         BKE_main.h
231         BKE_mask.h
232         BKE_material.h
233         BKE_mball.h
234         BKE_mesh.h
235         BKE_mesh_mapping.h
236         BKE_mesh_remap.h
237         BKE_modifier.h
238         BKE_movieclip.h
239         BKE_multires.h
240         BKE_nla.h
241         BKE_node.h
242         BKE_object.h
243         BKE_object_deform.h
244         BKE_ocean.h
245         BKE_packedFile.h
246         BKE_paint.h
247         BKE_particle.h
248         BKE_pbvh.h
249         BKE_pointcache.h
250         BKE_property.h
251         BKE_report.h
252         BKE_rigidbody.h
253         BKE_sca.h
254         BKE_scene.h
255         BKE_screen.h
256         BKE_sequencer.h
257         BKE_shrinkwrap.h
258         BKE_sketch.h
259         BKE_smoke.h
260         BKE_softbody.h
261         BKE_sound.h
262         BKE_speaker.h
263         BKE_subsurf.h
264         BKE_suggestions.h
265         BKE_editmesh.h
266         BKE_editmesh_bvh.h
267         BKE_text.h
268         BKE_texture.h
269         BKE_tracking.h
270         BKE_treehash.h
271         BKE_unit.h
272         BKE_utildefines.h
273         BKE_world.h
274         BKE_writeavi.h
275         BKE_writeframeserver.h
276
277         depsgraph_private.h
278         nla_private.h
279         tracking_private.h
280         intern/CCGSubSurf.h
281         intern/pbvh_intern.h
282         intern/data_transfer_intern.h
283 )
284
285 if(WITH_BINRELOC)
286         list(APPEND INC_SYS
287                 ${BINRELOC_INCLUDE_DIRS}
288         )
289         add_definitions(-DWITH_BINRELOC)
290 endif()
291
292 add_definitions(${GL_DEFINITIONS})
293
294 if(WIN32)
295         list(APPEND INC
296                 ../../../intern/utfconv
297         )
298 endif()
299
300 if(WITH_AUDASPACE)
301         list(APPEND INC
302                 ../../../intern/audaspace/intern
303         )
304         add_definitions(-DWITH_AUDASPACE)
305 endif()
306
307 if(WITH_BULLET)
308         list(APPEND INC_SYS
309                 ${BULLET_INCLUDE_DIRS}
310         )
311         list(APPEND INC
312                 ../../../intern/rigidbody
313         )
314         add_definitions(-DWITH_BULLET)
315 endif()
316
317 #if(WITH_MOD_CLOTH_ELTOPO)
318 #       list(APPEND INC
319 #               ../../../extern/eltopo
320 #               ../../../extern/eltopo/eltopo3d
321 #       )
322 #       add_definitions(-DWITH_ELTOPO)
323 #endif()
324
325 if(WITH_IMAGE_OPENEXR)
326         add_definitions(-DWITH_OPENEXR)
327 endif()
328
329 if(WITH_IMAGE_TIFF)
330         add_definitions(-DWITH_TIFF)
331 endif()
332
333 if(WITH_OPENIMAGEIO)
334         add_definitions(-DWITH_OPENIMAGEIO)
335 endif()
336
337 if(WITH_IMAGE_OPENJPEG)
338         add_definitions(-DWITH_OPENJPEG)
339 endif()
340
341 if(WITH_IMAGE_DDS)
342         add_definitions(-DWITH_DDS)
343 endif()
344
345 if(WITH_IMAGE_CINEON)
346         add_definitions(-DWITH_CINEON)
347 endif()
348
349 if(WITH_IMAGE_FRAMESERVER)
350         add_definitions(-DWITH_FRAMESERVER)
351 endif()
352
353 if(WITH_IMAGE_HDR)
354         add_definitions(-DWITH_HDR)
355 endif()
356
357 if(WITH_CODEC_AVI)
358         list(APPEND INC
359                 ../avi
360         )
361         add_definitions(-DWITH_AVI)
362 endif()
363
364 if(WITH_CODEC_QUICKTIME)
365         list(APPEND INC
366                 ../quicktime
367         )
368         list(APPEND INC_SYS
369                 ${QUICKTIME_INCLUDE_DIRS}
370         )
371         add_definitions(-DWITH_QUICKTIME)
372 endif()
373
374 if(WITH_CODEC_FFMPEG)
375         list(APPEND SRC
376                 intern/writeffmpeg.c
377                 BKE_writeffmpeg.h
378         )
379         list(APPEND INC
380                 ../../../intern/ffmpeg
381         )
382         list(APPEND INC_SYS
383                 ${FFMPEG_INCLUDE_DIRS}
384         )
385         add_definitions(-DWITH_FFMPEG)
386
387         remove_strict_flags_file(
388                 intern/writeffmpeg.c
389         )
390 endif()
391
392 if(WITH_PYTHON)
393         list(APPEND INC
394                 ../python
395         )
396         add_definitions(-DWITH_PYTHON)
397
398         if(WITH_PYTHON_SECURITY)
399                 add_definitions(-DWITH_PYTHON_SECURITY)
400         endif()
401 endif()
402
403 if(WITH_MOD_FLUID)
404         list(APPEND INC
405                 ../../../intern/elbeem/extern
406         )
407         add_definitions(-DWITH_MOD_FLUID)
408 endif()
409
410 if(WITH_MOD_SMOKE)
411         add_definitions(-DWITH_SMOKE)
412 endif()
413
414 if(WITH_MOD_OCEANSIM)
415         add_definitions(-DWITH_OCEANSIM)
416 endif()
417
418 if(WITH_JACK)
419         add_definitions(-DWITH_JACK)
420 endif()
421
422 if(WITH_LZO)
423         list(APPEND INC_SYS
424                 ../../../extern/lzo/minilzo
425         )
426         add_definitions(-DWITH_LZO)
427 endif()
428
429 if(WITH_LZMA)
430         list(APPEND INC_SYS
431                 ../../../extern/lzma
432         )
433         add_definitions(-DWITH_LZMA)
434 endif()
435
436 if(WITH_GAMEENGINE)
437         list(APPEND INC_SYS
438                 ../../../extern/recastnavigation
439         )
440         list(APPEND SRC
441                 intern/navmesh_conversion.c
442                 BKE_navmesh_conversion.h
443         )
444
445         add_definitions(-DWITH_GAMEENGINE)
446 endif()
447
448 if(WITH_LIBMV)
449         add_definitions(-DWITH_LIBMV)
450 endif()
451
452 if(WITH_FFTW3)
453         list(APPEND INC_SYS
454                 ${FFTW3_INCLUDE_DIRS}
455         )
456         add_definitions(-DFFTW3=1)
457 endif()
458
459 if(WITH_INTERNATIONAL)
460         add_definitions(-DWITH_INTERNATIONAL)
461 endif()
462
463 if(WITH_FREESTYLE)
464         add_definitions(-DWITH_FREESTYLE)
465 endif()
466
467 ## Warnings as errors, this is too strict!
468 #if(MSVC)
469 #       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
470 #endif()
471
472 blender_add_lib(bf_blenkernel "${SRC}" "${INC}" "${INC_SYS}")