remove some redundant vars, assignments & checks.
[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 set(INC 
28         .
29         ../avi
30         ../blenlib
31         ../blenkernel
32         ../blenloader
33         ../makesdna
34         ../../../intern/memutil
35         ../../../intern/guardedalloc
36         ${JPEG_INCLUDE_DIR}
37         ${PNG_INCLUDE_DIR}
38         ${ZLIB_INCLUDE_DIRS}
39 )
40
41 set(SRC
42         intern/allocimbuf.c
43         intern/anim_movie.c
44         intern/bmp.c
45         intern/cache.c
46         intern/divers.c
47         intern/filetype.c
48         intern/filter.c
49         intern/imageprocess.c
50         intern/iris.c
51         intern/jp2.c
52         intern/jpeg.c
53         intern/md5.c
54         intern/metadata.c
55         intern/module.c
56         intern/png.c
57         intern/radiance_hdr.c
58         intern/readimage.c
59         intern/rectop.c
60         intern/rotate.c
61         intern/scaling.c
62         intern/targa.c
63         intern/thumbs.c
64         intern/thumbs_blend.c
65         intern/tiff.c
66         intern/util.c
67         intern/writeimage.c
68
69         IMB_imbuf.h
70         IMB_imbuf_types.h
71         IMB_thumbs.h
72         intern/IMB_allocimbuf.h
73         intern/IMB_anim.h
74         intern/IMB_filetype.h
75         intern/IMB_filter.h
76         intern/IMB_metadata.h
77         intern/cineon/cin_debug_stuff.h
78         intern/cineon/cineonfile.h
79         intern/cineon/cineonlib.h
80         intern/cineon/dpxfile.h
81         intern/cineon/dpxlib.h
82         intern/cineon/logImageCore.h
83         intern/cineon/logImageLib.h
84         intern/cineon/logmemfile.h
85         intern/dds/BlockDXT.h
86         intern/dds/Color.h
87         intern/dds/ColorBlock.h
88         intern/dds/Common.h
89         intern/dds/DirectDrawSurface.h
90         intern/dds/Image.h
91         intern/dds/PixelFormat.h
92         intern/dds/Stream.h
93         intern/dds/dds_api.h
94         intern/imbuf.h
95         intern/md5.h
96         intern/openexr/openexr_api.h
97         intern/openexr/openexr_multi.h
98 )
99
100 if(WITH_IMAGE_OPENEXR)
101         add_definitions(-DWITH_OPENEXR)
102 endif()
103
104 if(WITH_IMAGE_TIFF)
105         list(APPEND INC ${TIFF_INCLUDE_DIR})
106         add_definitions(-DWITH_TIFF)
107 endif()
108
109 if(WITH_IMAGE_OPENJPEG)
110         list(APPEND INC ${OPENJPEG_INC})
111         add_definitions(-DWITH_OPENJPEG)
112 endif()
113
114 if(WITH_IMAGE_REDCODE)
115         list(APPEND INC ${REDCODE_INC})
116         add_definitions(-DWITH_REDCODE)
117 endif()
118
119 if(WITH_CODEC_QUICKTIME)
120         list(APPEND INC
121                 ../quicktime
122                 ${QUICKTIME_INC}
123         )
124         add_definitions(-DWITH_QUICKTIME)
125 endif()
126
127 if(WITH_CODEC_FFMPEG)
128         list(APPEND INC ${FFMPEG_INC})
129         add_definitions(-DWITH_FFMPEG)
130 endif()
131
132 if(WITH_IMAGE_DDS)
133         add_definitions(-DWITH_DDS)
134 endif()
135
136 if(WITH_IMAGE_CINEON)
137         add_definitions(-DWITH_CINEON)
138 endif()
139
140 if(WITH_IMAGE_HDR)
141         add_definitions(-DWITH_HDR)
142 endif()
143
144 blender_add_lib(bf_imbuf "${SRC}" "${INC}")