RNA:
[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         ../avi
29         ../blenfont
30         ../blenlib
31         ../blenloader
32         ../gpu
33         ../ikplugin
34         ../imbuf
35         ../makesdna
36         ../makesrna
37         ../modifiers
38         ../nodes
39         ../render/extern/include
40         ../../../intern/bsp/extern
41         ../../../intern/decimation/extern
42         ../../../intern/elbeem/extern
43         ../../../intern/guardedalloc
44         ../../../intern/iksolver/extern
45         ../../../intern/memutil
46         ../../../intern/mikktspace
47         ../../../intern/opennl/extern
48         ../../../intern/smoke/extern
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/BME_Customdata.c
61         intern/BME_conversions.c
62         intern/BME_eulers.c
63         intern/BME_mesh.c
64         intern/BME_structure.c
65         intern/BME_tools.c
66         intern/CCGSubSurf.c
67         intern/DerivedMesh.c
68         intern/action.c
69         intern/anim.c
70         intern/anim_sys.c
71         intern/armature.c
72         intern/blender.c
73         intern/bmfont.c
74         intern/boids.c
75         intern/booleanops_mesh.c
76         intern/brush.c
77         intern/bullet.c
78         intern/bvhutils.c
79         intern/camera.c
80         intern/cdderivedmesh.c
81         intern/cloth.c
82         intern/collision.c
83         intern/colortools.c
84         intern/constraint.c
85         intern/context.c
86         intern/curve.c
87         intern/customdata.c
88         intern/customdata_file.c
89         intern/deform.c
90         intern/depsgraph.c
91         intern/displist.c
92         intern/effect.c
93         intern/fcurve.c
94         intern/fluidsim.c
95         intern/fmodifier.c
96         intern/font.c
97         intern/gpencil.c
98         intern/group.c
99         intern/icons.c
100         intern/idcode.c
101         intern/idprop.c
102         intern/image.c
103         intern/image_gen.c
104         intern/implicit.c
105         intern/ipo.c
106         intern/key.c
107         intern/lamp.c
108         intern/lattice.c
109         intern/library.c
110         intern/material.c
111         intern/mball.c
112         intern/mesh.c
113         intern/mesh_validate.c
114         intern/modifier.c
115         intern/movieclip.c
116         intern/multires.c
117         intern/nla.c
118         intern/node.c
119         intern/object.c
120         intern/packedFile.c
121         intern/paint.c
122         intern/particle.c
123         intern/particle_system.c
124         intern/pointcache.c
125         intern/property.c
126         intern/report.c
127         intern/sca.c
128         intern/scene.c
129         intern/screen.c
130         intern/script.c
131         intern/seqcache.c
132         intern/seqeffects.c
133         intern/sequencer.c
134         intern/shrinkwrap.c
135         intern/sketch.c
136         intern/smoke.c
137         intern/softbody.c
138         intern/sound.c
139         intern/speaker.c
140         intern/subsurf_ccg.c
141         intern/suggestions.c
142         intern/text.c
143         intern/texture.c
144         intern/tracking.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_camera.h
168         BKE_cdderivedmesh.h
169         BKE_cloth.h
170         BKE_collision.h
171         BKE_colortools.h
172         BKE_constraint.h
173         BKE_context.h
174         BKE_curve.h
175         BKE_customdata.h
176         BKE_customdata_file.h
177         BKE_deform.h
178         BKE_depsgraph.h
179         BKE_displist.h
180         BKE_effect.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_lamp.h
194         BKE_lattice.h
195         BKE_library.h
196         BKE_main.h
197         BKE_material.h
198         BKE_mball.h
199         BKE_mesh.h
200         BKE_modifier.h
201         BKE_movieclip.h
202         BKE_multires.h
203         BKE_nla.h
204         BKE_node.h
205         BKE_object.h
206         BKE_packedFile.h
207         BKE_paint.h
208         BKE_particle.h
209         BKE_plugin_types.h
210         BKE_pointcache.h
211         BKE_property.h
212         BKE_report.h
213         BKE_sca.h
214         BKE_scene.h
215         BKE_screen.h
216         BKE_script.h
217         BKE_sequencer.h
218         BKE_shrinkwrap.h
219         BKE_sketch.h
220         BKE_smoke.h
221         BKE_softbody.h
222         BKE_sound.h
223         BKE_speaker.h
224         BKE_subsurf.h
225         BKE_suggestions.h
226         BKE_text.h
227         BKE_texture.h
228         BKE_tracking.h
229         BKE_unit.h
230         BKE_utildefines.h
231         BKE_world.h
232         BKE_writeavi.h
233         BKE_writeffmpeg.h
234         BKE_writeframeserver.h
235         depsgraph_private.h
236         intern/CCGSubSurf.h
237         intern/bmesh_private.h
238         nla_private.h
239 )
240
241 add_definitions(-DGLEW_STATIC)
242
243 if(WITH_AUDASPACE)
244         list(APPEND INC
245                 ../../../intern/audaspace/intern
246         )
247         add_definitions(-DWITH_AUDASPACE)
248 endif()
249
250 if(WITH_BULLET)
251         list(APPEND INC
252                 ../../../extern/bullet2/src
253         )
254         add_definitions(-DUSE_BULLET)
255 endif()
256
257 if(WITH_MOD_CLOTH_ELTOPO)
258         list(APPEND INC
259                 ../../../extern/eltopo
260         )
261         add_definitions(-DWITH_ELTOPO)
262 endif()
263
264 if(WITH_IMAGE_OPENEXR)
265         add_definitions(-DWITH_OPENEXR)
266 endif()
267
268 if(WITH_IMAGE_TIFF)
269         add_definitions(-DWITH_TIFF)
270 endif()
271
272 if(WITH_IMAGE_OPENJPEG)
273         add_definitions(-DWITH_OPENJPEG)
274 endif()
275
276 if(WITH_IMAGE_DDS)
277         add_definitions(-DWITH_DDS)
278 endif()
279
280 if(WITH_IMAGE_CINEON)
281         add_definitions(-DWITH_CINEON)
282 endif()
283
284 if(WITH_IMAGE_FRAMESERVER)
285         add_definitions(-DWITH_FRAMESERVER)
286 endif()
287
288 if(WITH_IMAGE_HDR)
289         add_definitions(-DWITH_HDR)
290 endif()
291
292 if(WITH_CODEC_QUICKTIME)
293         list(APPEND INC
294                 ../quicktime
295         )
296         list(APPEND INC_SYS
297                 ${QUICKTIME_INCLUDE_DIRS}
298         )
299         add_definitions(-DWITH_QUICKTIME)
300 endif()
301
302 if(WITH_CODEC_FFMPEG)
303         list(APPEND INC
304                 ../../../intern/ffmpeg
305         )
306         list(APPEND INC_SYS
307                 ${FFMPEG_INCLUDE_DIRS}
308         )
309         add_definitions(-DWITH_FFMPEG)
310
311         remove_strict_flags_file(
312                 intern/writeffmpeg.c
313         )
314 endif()
315
316 if(WITH_PYTHON)
317         list(APPEND INC
318                 ../python
319         )
320         list(APPEND INC_SYS
321                 ${PYTHON_INCLUDE_DIRS}
322         )
323         add_definitions(-DWITH_PYTHON)
324
325         if(WITH_PYTHON_SECURITY)
326                 add_definitions(-DWITH_PYTHON_SECURITY)
327         endif()
328 endif()
329
330 if(WITH_OPENMP)
331         add_definitions(-DPARALLEL=1)
332 endif()
333
334 if(WITH_MOD_FLUID)
335         add_definitions(-DWITH_MOD_FLUID)
336 endif()
337
338 if(WITH_MOD_SMOKE)
339         add_definitions(-DWITH_SMOKE)
340 endif()
341
342 if(WITH_JACK)
343         add_definitions(-DWITH_JACK)
344 endif()
345
346 if(WITH_LZO)
347         list(APPEND INC_SYS
348                 ../../../extern/lzo/minilzo
349         )
350         add_definitions(-DWITH_LZO)
351 endif()
352
353 if(WITH_LZMA)
354         list(APPEND INC_SYS
355                 ../../../extern/lzma
356         )
357         add_definitions(-DWITH_LZMA)
358 endif()
359
360 if(WITH_GAMEENGINE)
361         list(APPEND INC_SYS
362                 ../../../extern/recastnavigation
363         )
364         list(APPEND SRC
365                 intern/navmesh_conversion.c
366                 BKE_navmesh_conversion.h
367         )
368
369         add_definitions(-DWITH_GAMEENGINE)
370 endif()
371
372 if(WITH_LIBMV)
373         list(APPEND INC ../../../extern/libmv)
374         add_definitions(-DWITH_LIBMV)
375 endif()
376
377 ## Warnings as errors, this is too strict!
378 #if(MSVC)
379 #       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
380 #endif()
381
382 blender_add_lib(bf_blenkernel "${SRC}" "${INC}" "${INC_SYS}")