Merged changes in the trunk up to revision 32124.
[blender-staging.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         .
31         ../avi
32         ../blenlib
33         ../blenloader
34         ../freestyle
35         ../gpu
36         ../ikplugin
37         ../imbuf
38         ../makesdna
39         ../makesrna
40         ../modifiers
41         ../nodes
42         ../editors/include
43         ../render/extern/include
44         ../../../extern/glew/include
45         ../../../intern/audaspace/intern
46         ../../../intern/bsp/extern ../blenfont
47         ../../../intern/decimation/extern
48         ../../../intern/elbeem/extern
49         ../../../intern/guardedalloc
50         ../../../intern/iksolver/extern
51         ../../../intern/memutil
52         ../../../intern/opennl/extern
53         ../../../intern/smoke/extern
54     ../../../source/blender/windowmanager # XXX - BAD LEVEL CALL WM_api.h
55         ${ZLIB_INC}
56 )
57
58
59 ADD_DEFINITIONS(-DGLEW_STATIC)
60
61 IF(WITH_BULLET)
62         LIST(APPEND INC ../../../extern/bullet2/src)
63         ADD_DEFINITIONS(-DUSE_BULLET)
64 ENDIF(WITH_BULLET)
65
66 IF(WITH_IMAGE_OPENEXR)
67         ADD_DEFINITIONS(-DWITH_OPENEXR)
68 ENDIF(WITH_IMAGE_OPENEXR)
69
70 IF(WITH_IMAGE_TIFF)
71         ADD_DEFINITIONS(-DWITH_TIFF)
72 ENDIF(WITH_IMAGE_TIFF)
73
74 IF(WITH_IMAGE_OPENJPEG)
75         ADD_DEFINITIONS(-DWITH_OPENJPEG)
76 ENDIF(WITH_IMAGE_OPENJPEG)
77
78 IF(WITH_IMAGE_DDS)
79         ADD_DEFINITIONS(-DWITH_DDS)
80 ENDIF(WITH_IMAGE_DDS)
81
82 IF(WITH_IMAGE_CINEON)
83         ADD_DEFINITIONS(-DWITH_CINEON)
84 ENDIF(WITH_IMAGE_CINEON)
85
86 IF(WITH_IMAGE_HDR)
87         ADD_DEFINITIONS(-DWITH_HDR)
88 ENDIF(WITH_IMAGE_HDR)
89
90 IF(WITH_QUICKTIME)
91         LIST(APPEND INC ../quicktime ${QUICKTIME_INC})
92         ADD_DEFINITIONS(-DWITH_QUICKTIME)
93 ENDIF(WITH_QUICKTIME)
94
95 IF(WITH_FFMPEG)
96         LIST(APPEND INC ${FFMPEG_INC})
97         ADD_DEFINITIONS(-DWITH_FFMPEG)
98 ENDIF(WITH_FFMPEG)
99
100 IF(WITH_LCMS)
101         LIST(APPEND INC ${LCMS_INCLUDE_DIR})
102         ADD_DEFINITIONS(-DWITH_LCMS)
103 ENDIF(WITH_LCMS)
104
105 IF(WITH_PYTHON)
106         LIST(APPEND INC ../python ${PYTHON_INC})
107 ELSE(WITH_PYTHON)
108         ADD_DEFINITIONS(-DDISABLE_PYTHON)
109 ENDIF(WITH_PYTHON)
110
111 IF(WITH_OPENMP)
112                 ADD_DEFINITIONS(-DPARALLEL=1)
113 ENDIF(WITH_OPENMP)
114
115 IF(NOT WITH_FLUID)
116         ADD_DEFINITIONS(-DDISABLE_ELBEEM)
117 ENDIF(NOT WITH_FLUID)
118
119 IF(WITH_LZO)
120         LIST(APPEND INC ../../../extern/lzo/minilzo)
121         ADD_DEFINITIONS(-DWITH_LZO)
122 ENDIF(WITH_LZO)
123
124 IF(WITH_LZMA)
125         LIST(APPEND INC ../../../extern/lzma)
126         ADD_DEFINITIONS(-DWITH_LZMA)
127 ENDIF(WITH_LZMA)
128
129 IF(WIN32)
130         LIST(APPEND INC ${PTHREADS_INC})
131 ENDIF(WIN32)
132
133 BLENDERLIB(bf_blenkernel "${SRC}" "${INC}")