b4a70917ca80db0872583cf8c09599021e5c2d6b
[blender.git] / source / blender / editors / space_file / CMakeLists.txt
1 # $Id: CMakeLists.txt 12931 2007-12-17 18:20:48Z theeth $
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 # Contributor(s): Jacques Beaurain.
19 #
20 # ***** END GPL LICENSE BLOCK *****
21
22 set(INC
23         ../include
24         ../../blenfont
25         ../../blenkernel
26         ../../blenlib
27         ../../blenloader
28         ../../imbuf
29         ../../makesdna
30         ../../makesrna
31         ../../windowmanager
32         ../../render/extern/include
33         ../../../../intern/guardedalloc
34 )
35
36 set(SRC
37         file_draw.c
38         file_ops.c
39         file_panels.c
40         filelist.c
41         filesel.c
42         fsmenu.c
43         space_file.c
44
45         file_intern.h
46         filelist.h
47         fsmenu.h
48 )
49
50 if(WITH_IMAGE_OPENEXR)
51         add_definitions(-DWITH_OPENEXR)
52 endif()
53
54 if(WITH_IMAGE_TIFF)
55         add_definitions(-DWITH_TIFF)
56 endif()
57
58 if(WITH_IMAGE_OPENJPEG)
59         add_definitions(-DWITH_OPENJPEG)
60 endif()
61
62 if(WITH_IMAGE_DDS)
63         add_definitions(-DWITH_DDS)
64 endif()
65
66 if(WITH_IMAGE_CINEON)
67         add_definitions(-DWITH_CINEON)
68 endif()
69
70 if(WITH_IMAGE_HDR)
71         add_definitions(-DWITH_HDR)
72 endif()
73
74 blenderlib(bf_editor_space_file "${SRC}" "${INC}")