Merge with trunk r38619
[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         ../../render/extern/include
32         ../../windowmanager
33         ../../../../intern/guardedalloc
34 )
35
36 set(INC_SYS
37         ${GLEW_INCLUDE_PATH}
38 )
39
40 set(SRC
41         file_draw.c
42         file_ops.c
43         file_panels.c
44         filelist.c
45         filesel.c
46         fsmenu.c
47         space_file.c
48
49         file_intern.h
50         filelist.h
51         fsmenu.h
52 )
53
54 if(WITH_HEADLESS)
55         add_definitions(-DWITH_HEADLESS)
56 endif()
57
58 if(WITH_IMAGE_OPENEXR)
59         add_definitions(-DWITH_OPENEXR)
60 endif()
61
62 if(WITH_IMAGE_TIFF)
63         add_definitions(-DWITH_TIFF)
64 endif()
65
66 if(WITH_IMAGE_OPENJPEG)
67         add_definitions(-DWITH_OPENJPEG)
68 endif()
69
70 if(WITH_IMAGE_DDS)
71         add_definitions(-DWITH_DDS)
72 endif()
73
74 if(WITH_IMAGE_CINEON)
75         add_definitions(-DWITH_CINEON)
76 endif()
77
78 if(WITH_IMAGE_HDR)
79         add_definitions(-DWITH_HDR)
80 endif()
81
82 blender_add_lib(bf_editor_space_file "${SRC}" "${INC}" "${INC_SYS}")