Cleanup: remove contributors for CMake files
[blender.git] / source / blender / editors / interface / 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         ../../blenloader
24         ../../blentranslation
25         ../../depsgraph
26         ../../draw
27         ../../gpu
28         ../../imbuf
29         ../../makesdna
30         ../../makesrna
31         ../../python
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         interface.c
43         interface_align.c
44         interface_anim.c
45         interface_context_menu.c
46         interface_draw.c
47         interface_eyedropper.c
48         interface_eyedropper_color.c
49         interface_eyedropper_colorband.c
50         interface_eyedropper_datablock.c
51         interface_eyedropper_depth.c
52         interface_eyedropper_driver.c
53         interface_handlers.c
54         interface_icons.c
55         interface_icons_event.c
56         interface_layout.c
57         interface_ops.c
58         interface_panel.c
59         interface_query.c
60         interface_region_color_picker.c
61         interface_region_hud.c
62         interface_region_menu_pie.c
63         interface_region_menu_popup.c
64         interface_region_popover.c
65         interface_region_popup.c
66         interface_region_search.c
67         interface_region_tooltip.c
68         interface_regions.c
69         interface_style.c
70         interface_templates.c
71         interface_utils.c
72         interface_widgets.c
73         resources.c
74         view2d.c
75         view2d_ops.c
76
77         interface_eyedropper_intern.h
78         interface_intern.h
79         interface_regions_intern.h
80 )
81
82 if(WITH_INTERNATIONAL)
83         add_definitions(-DWITH_INTERNATIONAL)
84 endif()
85
86 if(WITH_HEADLESS)
87         add_definitions(-DWITH_HEADLESS)
88 endif()
89
90 if(WITH_CYCLES)
91         add_definitions(-DWITH_CYCLES)
92 endif()
93
94 if(WITH_PYTHON)
95         add_definitions(-DWITH_PYTHON)
96 endif()
97
98 if(WIN32)
99         if(WITH_INPUT_IME)
100                 add_definitions(-DWITH_INPUT_IME)
101         endif()
102 endif()
103
104 add_definitions(${GL_DEFINITIONS})
105
106 blender_add_lib(bf_editor_interface "${SRC}" "${INC}" "${INC_SYS}")