soc-2008-mxcurioni: merged changes to revision 23516
[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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, 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 FILE(GLOB SRC intern/*.c)
28
29 SET(INC 
30         . ../../../intern/guardedalloc ../../../intern/memutil ../editors/include ../blenlib ../makesdna
31         ../render/extern/include ../../../intern/decimation/extern
32         ../imbuf ../avi ../../../intern/elbeem/extern ../../../intern/opennl/extern
33         ../../../intern/iksolver/extern ../blenloader ../ikplugin ../freestyle
34         ../nodes ../../../extern/glew/include ../gpu ../makesrna ../../../intern/smoke/extern
35         ../../../intern/bsp/extern ../blenfont
36         ../../../intern/audaspace/intern
37         ${ZLIB_INC}
38 )
39
40 IF(WITH_BULLET)
41         SET(INC ${INC} ../../../extern/bullet2/src)
42         ADD_DEFINITIONS(-DUSE_BULLET)
43 ENDIF(WITH_BULLET)
44
45 IF(WITH_OPENEXR)
46         ADD_DEFINITIONS(-DWITH_OPENEXR)
47 ENDIF(WITH_OPENEXR)
48
49 IF(WITH_OPENJPEG)
50         ADD_DEFINITIONS(-DWITH_OPENJPEG)
51 ENDIF(WITH_OPENJPEG)
52
53 IF(WITH_DDS)
54         ADD_DEFINITIONS(-DWITH_DDS)
55 ENDIF(WITH_DDS)
56
57 IF(WITH_QUICKTIME)
58         SET(INC ${INC} ../quicktime ${QUICKTIME_INC})
59         ADD_DEFINITIONS(-DWITH_QUICKTIME)
60 ENDIF(WITH_QUICKTIME)
61
62 IF(WITH_FFMPEG)
63         SET(INC ${INC} ${FFMPEG_INC})
64         ADD_DEFINITIONS(-DWITH_FFMPEG)
65 ENDIF(WITH_FFMPEG)
66
67 IF(WITH_PYTHON)
68         SET(INC ${INC} ../python ${PYTHON_INC})
69 ELSE(WITH_PYTHON)
70         ADD_DEFINITIONS(-DDISABLE_PYTHON)
71 ENDIF(WITH_PYTHON)
72
73 IF(NOT WITH_ELBEEM)
74         ADD_DEFINITIONS(-DDISABLE_ELBEEM)
75 ENDIF(NOT WITH_ELBEEM)
76
77 IF(WITH_LZO)
78         SET(INC ${INC} ../../../extern/lzo/minilzo)
79         ADD_DEFINITIONS(-DWITH_LZO)
80 ENDIF(WITH_LZO)
81
82 IF(WITH_LZMA)
83         SET(INC ${INC} ../../../extern/lzma)
84         ADD_DEFINITIONS(-DWITH_LZMA)
85 ENDIF(WITH_LZMA)
86
87 IF(WIN32)
88         SET(INC ${INC} ${PTHREADS_INC})
89 ENDIF(WIN32)
90
91 BLENDERLIB(bf_blenkernel "${SRC}" "${INC}")
92