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