Fix T70439: Local view always including new objects
[blender.git] / source / blender / editors / space_image / 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 # ***** END GPL LICENSE BLOCK *****
17
18 set(INC
19   ../include
20   ../../blenfont
21   ../../blenkernel
22   ../../blenlib
23   ../../blentranslation
24   ../../bmesh
25   ../../depsgraph
26   ../../gpu
27   ../../imbuf
28   ../../makesdna
29   ../../makesrna
30   ../../render/extern/include
31   ../../windowmanager
32   ../../../../intern/clog
33   ../../../../intern/glew-mx
34   ../../../../intern/guardedalloc
35 )
36
37 set(INC_SYS
38   ${GLEW_INCLUDE_PATH}
39 )
40
41 set(SRC
42   image_buttons.c
43   image_draw.c
44   image_edit.c
45   image_ops.c
46   image_undo.c
47   space_image.c
48
49   image_intern.h
50 )
51
52 set(LIB
53   bf_blenkernel
54   bf_blenlib
55   bf_editor_uvedit
56 )
57
58 if(WITH_INTERNATIONAL)
59   add_definitions(-DWITH_INTERNATIONAL)
60 endif()
61
62 if(WITH_OPENIMAGEIO)
63   add_definitions(-DWITH_OPENIMAGEIO)
64 endif()
65
66 if(WITH_IMAGE_OPENJPEG)
67   add_definitions(-DWITH_OPENJPEG)
68 endif()
69
70 if(WITH_IMAGE_OPENEXR)
71   add_definitions(-DWITH_OPENEXR)
72 endif()
73
74 if(WITH_IMAGE_TIFF)
75   add_definitions(-DWITH_TIFF)
76 endif()
77
78 if(WITH_IMAGE_CINEON)
79   add_definitions(-DWITH_CINEON)
80 endif()
81
82 add_definitions(${GL_DEFINITIONS})
83
84 blender_add_lib(bf_editor_space_image "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")