Remove the unsigned, since totbits is signed too.
[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 SET(INC 
28         .
29         ../avi
30         ../blenlib
31         ../blenloader
32         ../gpu
33         ../ikplugin
34         ../imbuf
35         ../makesdna
36         ../makesrna
37         ../modifiers
38         ../nodes
39         ../editors/include
40         ../render/extern/include
41         ../../../extern/glew/include
42         ../../../intern/audaspace/intern
43         ../../../intern/bsp/extern ../blenfont
44         ../../../intern/decimation/extern
45         ../../../intern/elbeem/extern
46         ../../../intern/guardedalloc
47         ../../../intern/iksolver/extern
48         ../../../intern/memutil
49         ../../../intern/opennl/extern
50         ../../../intern/smoke/extern
51     ../../../source/blender/windowmanager # XXX - BAD LEVEL CALL WM_api.h
52         ${ZLIB_INC}
53 )
54
55 SET(SRC
56         intern/BME_Customdata.c
57         intern/BME_conversions.c
58         intern/BME_eulers.c
59         intern/BME_mesh.c
60         intern/BME_structure.c
61         intern/BME_tools.c
62         intern/CCGSubSurf.c
63         intern/DerivedMesh.c
64         intern/action.c
65         intern/anim.c
66         intern/anim_sys.c
67         intern/armature.c
68         intern/blender.c
69         intern/bmfont.c
70         intern/boids.c
71         intern/booleanops_mesh.c
72         intern/brush.c
73         intern/bullet.c
74         intern/bvhutils.c
75         intern/cdderivedmesh.c
76         intern/cloth.c
77         intern/collision.c
78         intern/colortools.c
79         intern/constraint.c
80         intern/context.c
81         intern/curve.c
82         intern/customdata.c
83         intern/customdata_file.c
84         intern/deform.c
85         intern/depsgraph.c
86         intern/displist.c
87         intern/effect.c
88         intern/exotic.c
89         intern/fcurve.c
90         intern/fluidsim.c
91         intern/fmodifier.c
92         intern/font.c
93         intern/gpencil.c
94         intern/group.c
95         intern/icons.c
96         intern/idcode.c
97         intern/idprop.c
98         intern/image.c
99         intern/image_gen.c
100         intern/implicit.c
101         intern/ipo.c
102         intern/key.c
103         intern/lattice.c
104         intern/library.c
105         intern/material.c
106         intern/mball.c
107         intern/mesh.c
108         intern/modifier.c
109         intern/multires.c
110         intern/nla.c
111         intern/node.c
112         intern/object.c
113         intern/packedFile.c
114         intern/paint.c
115         intern/particle.c
116         intern/particle_system.c
117         intern/pointcache.c
118         intern/property.c
119         intern/report.c
120         intern/sca.c
121         intern/scene.c
122         intern/screen.c
123         intern/script.c
124         intern/seqcache.c
125         intern/seqeffects.c
126         intern/sequencer.c
127         intern/shrinkwrap.c
128         intern/sketch.c
129         intern/smoke.c
130         intern/softbody.c
131         intern/sound.c
132         intern/subsurf_ccg.c
133         intern/suggestions.c
134         intern/text.c
135         intern/texture.c
136         intern/unit.c
137         intern/world.c
138         intern/writeavi.c
139         intern/writeffmpeg.c
140         intern/writeframeserver.c
141 )
142
143 ADD_DEFINITIONS(-DGLEW_STATIC)
144
145 IF(WITH_BULLET)
146         LIST(APPEND INC ../../../extern/bullet2/src)
147         ADD_DEFINITIONS(-DUSE_BULLET)
148 ENDIF(WITH_BULLET)
149
150 IF(WITH_IMAGE_OPENEXR)
151         ADD_DEFINITIONS(-DWITH_OPENEXR)
152 ENDIF(WITH_IMAGE_OPENEXR)
153
154 IF(WITH_IMAGE_TIFF)
155         ADD_DEFINITIONS(-DWITH_TIFF)
156 ENDIF(WITH_IMAGE_TIFF)
157
158 IF(WITH_IMAGE_OPENJPEG)
159         ADD_DEFINITIONS(-DWITH_OPENJPEG)
160 ENDIF(WITH_IMAGE_OPENJPEG)
161
162 IF(WITH_IMAGE_DDS)
163         ADD_DEFINITIONS(-DWITH_DDS)
164 ENDIF(WITH_IMAGE_DDS)
165
166 IF(WITH_IMAGE_CINEON)
167         ADD_DEFINITIONS(-DWITH_CINEON)
168 ENDIF(WITH_IMAGE_CINEON)
169
170 IF(WITH_IMAGE_HDR)
171         ADD_DEFINITIONS(-DWITH_HDR)
172 ENDIF(WITH_IMAGE_HDR)
173
174 IF(WITH_QUICKTIME)
175         LIST(APPEND INC ../quicktime ${QUICKTIME_INC})
176         ADD_DEFINITIONS(-DWITH_QUICKTIME)
177 ENDIF(WITH_QUICKTIME)
178
179 IF(WITH_FFMPEG)
180         LIST(APPEND INC ${FFMPEG_INC})
181         ADD_DEFINITIONS(-DWITH_FFMPEG)
182 ENDIF(WITH_FFMPEG)
183
184 IF(WITH_LCMS)
185         LIST(APPEND INC ${LCMS_INCLUDE_DIR})
186         ADD_DEFINITIONS(-DWITH_LCMS)
187 ENDIF(WITH_LCMS)
188
189 IF(WITH_PYTHON)
190         LIST(APPEND INC ../python ${PYTHON_INC})
191 ELSE(WITH_PYTHON)
192         ADD_DEFINITIONS(-DDISABLE_PYTHON)
193 ENDIF(WITH_PYTHON)
194
195 IF(WITH_OPENMP)
196         ADD_DEFINITIONS(-DPARALLEL=1)
197 ENDIF(WITH_OPENMP)
198
199 IF(NOT WITH_MOD_FLUID)
200         ADD_DEFINITIONS(-DDISABLE_ELBEEM)
201 ENDIF(NOT WITH_MOD_FLUID)
202
203 IF(WITH_JACK)
204         ADD_DEFINITIONS(-DWITH_JACK)
205 ENDIF(WITH_JACK)
206
207 IF(WITH_LZO)
208         LIST(APPEND INC ../../../extern/lzo/minilzo)
209         ADD_DEFINITIONS(-DWITH_LZO)
210 ENDIF(WITH_LZO)
211
212 IF(WITH_LZMA)
213         LIST(APPEND INC ../../../extern/lzma)
214         ADD_DEFINITIONS(-DWITH_LZMA)
215 ENDIF(WITH_LZMA)
216
217 IF(WIN32)
218     SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
219         LIST(APPEND INC ${PTHREADS_INC})
220 ENDIF(WIN32)
221
222 BLENDERLIB(bf_blenkernel "${SRC}" "${INC}")