style cleanup
[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         ../../blenloader
27         ../../gpu
28         ../../imbuf
29         ../../makesdna
30         ../../makesrna
31         ../../python
32         ../../windowmanager
33         ../../../../intern/guardedalloc
34 )
35
36 set(INC_SYS
37         ${GLEW_INCLUDE_PATH}
38 )
39
40 set(SRC
41         interface.c
42         interface_anim.c
43         interface_draw.c
44         interface_handlers.c
45         interface_icons.c
46         interface_layout.c
47         interface_ops.c
48         interface_panel.c
49         interface_regions.c
50         interface_style.c
51         interface_templates.c
52         interface_utils.c
53         interface_widgets.c
54         resources.c
55         view2d.c
56         view2d_ops.c
57
58         interface_intern.h
59 )
60
61 if(WITH_INTERNATIONAL)
62         add_definitions(-DWITH_INTERNATIONAL)
63 endif()
64
65 if(WITH_HEADLESS)
66         add_definitions(-DWITH_HEADLESS)
67 endif()
68
69 if(WITH_PYTHON)
70         add_definitions(-DWITH_PYTHON)
71 endif()
72
73 blender_add_lib(bf_editor_interface "${SRC}" "${INC}" "${INC_SYS}")