Merge branch 'blender2.7'
[blender.git] / source / blender / python / gpu / 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         .
20         ../../blenkernel
21         ../../blenlib
22         ../../gpu
23         ../../makesdna
24         ../../../../intern/guardedalloc
25         ../../../../intern/glew-mx
26 )
27
28 set(INC_SYS
29         ${GLEW_INCLUDE_PATH}
30         ${PYTHON_INCLUDE_DIRS}
31 )
32
33 set(SRC
34         gpu_py_api.c
35         gpu_py_batch.c
36         gpu_py_element.c
37         gpu_py_matrix.c
38         gpu_py_offscreen.c
39         gpu_py_select.c
40         gpu_py_shader.c
41         gpu_py_types.c
42         gpu_py_vertex_buffer.c
43         gpu_py_vertex_format.c
44
45         gpu_py_api.h
46         gpu_py_batch.h
47         gpu_py_element.h
48         gpu_py_matrix.h
49         gpu_py_offscreen.h
50         gpu_py_select.h
51         gpu_py_shader.h
52         gpu_py_types.h
53         gpu_py_vertex_buffer.h
54         gpu_py_vertex_format.h
55 )
56
57 add_definitions(${GL_DEFINITIONS})
58
59 blender_add_lib(bf_python_gpu "${SRC}" "${INC}" "${INC_SYS}")