Ghost Context Refactor
[blender-staging.git] / source / blender / editors / space_file / CMakeLists.txt
1 # ***** BEGIN GPL LICENSE BLOCK *****
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 #
17 # Contributor(s): Jacques Beaurain.
18 #
19 # ***** END GPL LICENSE BLOCK *****
20
21 set(INC
22         ../include
23         ../../blenfont
24         ../../blenkernel
25         ../../blenlib
26         ../../blenloader
27         ../../imbuf
28         ../../gpu
29         ../../makesdna
30         ../../makesrna
31         ../../render/extern/include
32         ../../windowmanager
33         ../../../../intern/guardedalloc
34         ../../../../intern/glew-mx
35 )
36
37 set(INC_SYS
38         ${GLEW_INCLUDE_PATH}
39 )
40
41 set(SRC
42         file_draw.c
43         file_ops.c
44         file_panels.c
45         filelist.c
46         filesel.c
47         fsmenu.c
48         space_file.c
49
50         file_intern.h
51         filelist.h
52         fsmenu.h
53 )
54
55 if(WITH_HEADLESS)
56         add_definitions(-DWITH_HEADLESS)
57 endif()
58
59 if(WITH_IMAGE_OPENEXR)
60         add_definitions(-DWITH_OPENEXR)
61 endif()
62
63 if(WITH_OPENIMAGEIO)
64         add_definitions(-DWITH_OPENIMAGEIO)
65 endif()
66
67 if(WITH_IMAGE_TIFF)
68         add_definitions(-DWITH_TIFF)
69 endif()
70
71 if(WITH_IMAGE_OPENJPEG)
72         add_definitions(-DWITH_OPENJPEG)
73 endif()
74
75 if(WITH_IMAGE_DDS)
76         add_definitions(-DWITH_DDS)
77 endif()
78
79 if(WITH_IMAGE_CINEON)
80         add_definitions(-DWITH_CINEON)
81 endif()
82
83 if(WITH_IMAGE_HDR)
84         add_definitions(-DWITH_HDR)
85 endif()
86
87 if(WITH_INTERNATIONAL)
88         add_definitions(-DWITH_INTERNATIONAL)
89 endif()
90
91 add_definitions(${GL_DEFINITIONS})
92
93 if(WITH_FREESTYLE)
94         add_definitions(-DWITH_FREESTYLE)
95 endif()
96
97 blender_add_lib(bf_editor_space_file "${SRC}" "${INC}" "${INC_SYS}")