Merged changes in the trunk up to revision 31190.
[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 FILE(GLOB SRC intern/*.c)
28
29 SET(INC 
30         . ../../../intern/guardedalloc ../../../intern/memutil ../editors/include ../blenlib ../makesdna ../modifiers
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     ../../../source/blender/windowmanager # XXX - BAD LEVEL CALL WM_api.h
38         ${ZLIB_INC}
39 )
40
41
42 ADD_DEFINITIONS(-DGLEW_STATIC)
43
44 IF(WITH_BULLET)
45         SET(INC ${INC} ../../../extern/bullet2/src)
46         ADD_DEFINITIONS(-DUSE_BULLET)
47 ENDIF(WITH_BULLET)
48
49 IF(WITH_IMAGE_OPENEXR)
50         ADD_DEFINITIONS(-DWITH_OPENEXR)
51 ENDIF(WITH_IMAGE_OPENEXR)
52
53 IF(WITH_IMAGE_TIFF)
54         ADD_DEFINITIONS(-DWITH_TIFF)
55 ENDIF(WITH_IMAGE_TIFF)
56
57 IF(WITH_IMAGE_OPENJPEG)
58         ADD_DEFINITIONS(-DWITH_OPENJPEG)
59 ENDIF(WITH_IMAGE_OPENJPEG)
60
61 IF(WITH_IMAGE_DDS)
62         ADD_DEFINITIONS(-DWITH_DDS)
63 ENDIF(WITH_IMAGE_DDS)
64
65 IF(WITH_IMAGE_CINEON)
66         ADD_DEFINITIONS(-DWITH_CINEON)
67 ENDIF(WITH_IMAGE_CINEON)
68
69 IF(WITH_IMAGE_HDR)
70         ADD_DEFINITIONS(-DWITH_HDR)
71 ENDIF(WITH_IMAGE_HDR)
72
73 IF(WITH_QUICKTIME)
74         SET(INC ${INC} ../quicktime ${QUICKTIME_INC})
75         ADD_DEFINITIONS(-DWITH_QUICKTIME)
76 ENDIF(WITH_QUICKTIME)
77
78 IF(WITH_FFMPEG)
79         SET(INC ${INC} ${FFMPEG_INC})
80         ADD_DEFINITIONS(-DWITH_FFMPEG)
81 ENDIF(WITH_FFMPEG)
82
83 IF(WITH_LCMS)
84         SET(INC ${INC} ${LCMS_INCLUDE_DIR})
85         ADD_DEFINITIONS(-DWITH_LCMS)
86 ENDIF(WITH_LCMS)
87
88 IF(WITH_PYTHON)
89         SET(INC ${INC} ../python ${PYTHON_INC})
90 ELSE(WITH_PYTHON)
91         ADD_DEFINITIONS(-DDISABLE_PYTHON)
92 ENDIF(WITH_PYTHON)
93
94 IF(WITH_OPENMP)
95                 ADD_DEFINITIONS(-DPARALLEL=1)
96 ENDIF(WITH_OPENMP)
97
98 IF(NOT WITH_FLUID)
99         ADD_DEFINITIONS(-DDISABLE_ELBEEM)
100 ENDIF(NOT WITH_FLUID)
101
102 IF(WITH_LZO)
103         SET(INC ${INC} ../../../extern/lzo/minilzo)
104         ADD_DEFINITIONS(-DWITH_LZO)
105 ENDIF(WITH_LZO)
106
107 IF(WITH_LZMA)
108         SET(INC ${INC} ../../../extern/lzma)
109         ADD_DEFINITIONS(-DWITH_LZMA)
110 ENDIF(WITH_LZMA)
111
112 IF(WIN32)
113         SET(INC ${INC} ${PTHREADS_INC})
114 ENDIF(WIN32)
115
116 BLENDERLIB(bf_blenkernel "${SRC}" "${INC}")
117