Merge branch 'master' into blender2.8
[blender.git] / source / blender / python / bmesh / 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): Campbell Barton
18 #
19 # ***** END GPL LICENSE BLOCK *****
20
21 set(INC
22         .
23         ../../bmesh
24         ../../blenkernel
25         ../../blenlib
26         ../../depsgraph
27         ../../makesdna
28         ../../../../intern/guardedalloc
29 )
30
31 set(INC_SYS
32         ${PYTHON_INCLUDE_DIRS}
33 )
34
35 set(SRC
36         bmesh_py_api.c
37         bmesh_py_geometry.c
38         bmesh_py_ops.c
39         bmesh_py_ops_call.c
40         bmesh_py_types.c
41         bmesh_py_types_customdata.c
42         bmesh_py_types_meshdata.c
43         bmesh_py_types_select.c
44         bmesh_py_utils.c
45
46         bmesh_py_api.h
47         bmesh_py_geometry.h
48         bmesh_py_ops.h
49         bmesh_py_ops_call.h
50         bmesh_py_types.h
51         bmesh_py_types_customdata.h
52         bmesh_py_types_meshdata.h
53         bmesh_py_types_select.h
54         bmesh_py_utils.h
55 )
56
57 if(WITH_FREESTYLE)
58         add_definitions(-DWITH_FREESTYLE)
59 endif()
60
61 blender_add_lib(bf_python_bmesh "${SRC}" "${INC}" "${INC_SYS}")