Cleanup: remove contributors for CMake files
[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         ../../imbuf
27         ../../gpu
28         ../../makesdna
29         ../../makesrna
30         ../../render/extern/include
31         ../../windowmanager
32         ../../../../intern/guardedalloc
33         ../../../../intern/glew-mx
34 )
35
36 set(INC_SYS
37         ${GLEW_INCLUDE_PATH}
38 )
39
40 set(SRC
41         image_buttons.c
42         image_draw.c
43         image_edit.c
44         image_ops.c
45         space_image.c
46
47         image_intern.h
48 )
49
50 if(WITH_INTERNATIONAL)
51         add_definitions(-DWITH_INTERNATIONAL)
52 endif()
53
54 if(WITH_OPENIMAGEIO)
55         add_definitions(-DWITH_OPENIMAGEIO)
56 endif()
57
58 if(WITH_IMAGE_OPENJPEG)
59         add_definitions(-DWITH_OPENJPEG)
60 endif()
61
62 if(WITH_IMAGE_OPENEXR)
63         add_definitions(-DWITH_OPENEXR)
64 endif()
65
66 if(WITH_IMAGE_TIFF)
67         add_definitions(-DWITH_TIFF)
68 endif()
69
70 if(WITH_IMAGE_CINEON)
71         add_definitions(-DWITH_CINEON)
72 endif()
73
74 add_definitions(${GL_DEFINITIONS})
75
76 blender_add_lib(bf_editor_space_image "${SRC}" "${INC}" "${INC_SYS}")