Wireframe Overlay: Add back the per edge hiding
[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 #
17 # Contributor(s): Jacques Beaurain.
18 #
19 # ***** END GPL LICENSE BLOCK *****
20
21 set(INC
22         ../include
23         ../../blenfont
24         ../../blenkernel
25         ../../blenlib
26         ../../blentranslation
27         ../../depsgraph
28         ../../draw
29         ../../gpu
30         ../../imbuf
31         ../../makesdna
32         ../../makesrna
33         ../../python
34         ../../windowmanager
35         ../../../../intern/guardedalloc
36         ../../../../intern/glew-mx
37 )
38
39 set(INC_SYS
40         ${GLEW_INCLUDE_PATH}
41 )
42
43 set(SRC
44         interface.c
45         interface_align.c
46         interface_anim.c
47         interface_draw.c
48         interface_eyedropper.c
49         interface_eyedropper_color.c
50         interface_eyedropper_colorband.c
51         interface_eyedropper_datablock.c
52         interface_eyedropper_depth.c
53         interface_eyedropper_driver.c
54         interface_handlers.c
55         interface_icons.c
56         interface_layout.c
57         interface_ops.c
58         interface_panel.c
59         interface_regions.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_style.c
69         interface_templates.c
70         interface_utils.c
71         interface_widgets.c
72         resources.c
73         view2d.c
74         view2d_ops.c
75
76         interface_eyedropper_intern.h
77         interface_intern.h
78         interface_regions_intern.h
79 )
80
81 if(WITH_INTERNATIONAL)
82         add_definitions(-DWITH_INTERNATIONAL)
83 endif()
84
85 if(WITH_HEADLESS)
86         add_definitions(-DWITH_HEADLESS)
87 endif()
88
89 if(WITH_CYCLES)
90         add_definitions(-DWITH_CYCLES)
91 endif()
92
93 if(WITH_PYTHON)
94         add_definitions(-DWITH_PYTHON)
95 endif()
96
97 if(WIN32)
98         if(WITH_INPUT_IME)
99                 add_definitions(-DWITH_INPUT_IME)
100         endif()
101 endif()
102
103 add_definitions(${GL_DEFINITIONS})
104
105 blender_add_lib(bf_editor_interface "${SRC}" "${INC}" "${INC_SYS}")