Blender TIFF support
[blender.git] / source / blender / imbuf / 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
30 SET(INC 
31         . ../makesdna ../../../intern/guardedalloc ../../../intern/memutil ../blenlib
32         ../avi ../blenkernel
33         ${JPEG_INC}
34         ${PNG_INC}
35         ${ZLIB_INC}
36         ${OPENJPEG_INC}
37 )
38
39 IF(WIN32)
40         SET(INC ${INC} ${PTHREADS_INC})
41 ENDIF(WIN32)
42
43 IF(WITH_OPENEXR)
44         ADD_DEFINITIONS(-DWITH_OPENEXR)
45 ENDIF(WITH_OPENEXR)
46
47 IF(WITH_TIFF)
48         SET(INC ${INC} ${TIFF_INC})
49         ADD_DEFINITIONS(-DWITH_TIFF)
50 ENDIF(WITH_TIFF)
51
52 IF(WITH_OPENJPEG)
53         ADD_DEFINITIONS(-DWITH_OPENJPEG)
54 ENDIF(WITH_OPENJPEG)
55
56 IF(WITH_QUICKTIME)
57         SET(INC ${INC} ../quicktime ${QUICKTIME_INC})
58         ADD_DEFINITIONS(-DWITH_QUICKTIME)
59 ENDIF(WITH_QUICKTIME)
60
61 IF(WITH_FFMPEG)
62         SET(INC ${INC} ${FFMPEG_INC})
63         ADD_DEFINITIONS(-DWITH_FFMPEG)
64 ENDIF(WITH_FFMPEG)
65
66 IF(WITH_DDS)
67         ADD_DEFINITIONS(-DWITH_DDS)
68 ENDIF(WITH_DDS)
69
70 BLENDERLIB(bf_imbuf "${SRC}" "${INC}")
71 #env.BlenderLib ( libname = 'bf_imbuf', sources = sources, includes = Split(incs), defines = defs, libtype=['core','player'], priority = [80, 40] )