c0023d49c956448f49ccb8d513ce9724893bbb01
[blender-staging.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         .
32         ../makesdna
33         ../../../intern/guardedalloc
34         ../../../intern/memutil
35         ../blenlib
36         ../avi
37         ../blenkernel
38         ${JPEG_INC}
39         ${PNG_INC}
40         ${ZLIB_INC}
41 )
42
43 IF(WIN32)
44         LIST(APPEND INC ${PTHREADS_INC})
45 ENDIF(WIN32)
46
47 IF(WITH_IMAGE_OPENEXR)
48         ADD_DEFINITIONS(-DWITH_OPENEXR)
49 ENDIF(WITH_IMAGE_OPENEXR)
50
51 IF(WITH_IMAGE_TIFF)
52         SET(INC ${INC} ${TIFF_INCLUDE_DIR})
53         ADD_DEFINITIONS(-DWITH_TIFF)
54 ENDIF(WITH_IMAGE_TIFF)
55
56 IF(WITH_IMAGE_OPENJPEG)
57         SET(INC ${INC} ${OPENJPEG_INC})
58         ADD_DEFINITIONS(-DWITH_OPENJPEG)
59 ENDIF(WITH_IMAGE_OPENJPEG)
60
61 IF(WITH_QUICKTIME)
62         SET(INC ${INC} ../quicktime ${QUICKTIME_INC})
63         ADD_DEFINITIONS(-DWITH_QUICKTIME)
64 ENDIF(WITH_QUICKTIME)
65
66 IF(WITH_FFMPEG)
67         SET(INC ${INC} ${FFMPEG_INC})
68         ADD_DEFINITIONS(-DWITH_FFMPEG)
69 ENDIF(WITH_FFMPEG)
70
71 IF(WITH_IMAGE_DDS)
72         ADD_DEFINITIONS(-DWITH_DDS)
73 ENDIF(WITH_IMAGE_DDS)
74
75 IF(WITH_IMAGE_CINEON)
76         ADD_DEFINITIONS(-DWITH_CINEON)
77 ENDIF(WITH_IMAGE_CINEON)
78
79 IF(WITH_IMAGE_HDR)
80         ADD_DEFINITIONS(-DWITH_HDR)
81 ENDIF(WITH_IMAGE_HDR)
82
83 BLENDERLIB(bf_imbuf "${SRC}" "${INC}")