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