Merge branch 'blender2.7'
[blender.git] / source / blender / editors / space_text / 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         ../../gpu
25         ../../makesdna
26         ../../makesrna
27         ../../windowmanager
28         ../../../../intern/guardedalloc
29         ../../../../intern/glew-mx
30 )
31
32 set(INC_SYS
33         ${GLEW_INCLUDE_PATH}
34 )
35
36 set(SRC
37         space_text.c
38         text_autocomplete.c
39         text_draw.c
40         text_format.c
41         text_format_lua.c
42         text_format_osl.c
43         text_format_pov.c
44         text_format_pov_ini.c
45         text_format_py.c
46         text_header.c
47         text_ops.c
48         text_undo.c
49
50         text_format.h
51         text_intern.h
52 )
53
54 add_definitions(${GL_DEFINITIONS})
55
56 if(WITH_PYTHON)
57         list(APPEND INC
58                 ../../python
59         )
60         add_definitions(-DWITH_PYTHON)
61 endif()
62
63 if(WITH_INTERNATIONAL)
64         add_definitions(-DWITH_INTERNATIONAL)
65 endif()
66
67 blender_add_lib(bf_editor_space_text "${SRC}" "${INC}" "${INC_SYS}")