Ghost Context Refactor
[blender-staging.git] / source / blender / editors / sculpt_paint / 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         ../uvedit
24         ../../blenkernel
25         ../../blenlib
26         ../../blenfont
27         ../../bmesh
28         ../../gpu
29         ../../imbuf
30         ../../makesdna
31         ../../makesrna
32         ../../render/extern/include
33         ../../windowmanager
34         ../../../../intern/guardedalloc
35         ../../../../intern/glew-mx
36 )
37
38 set(INC_SYS
39         ${GLEW_INCLUDE_PATH}
40 )
41
42 set(SRC
43         paint_cursor.c
44         paint_curve.c
45         paint_hide.c
46         paint_image.c
47         paint_image_2d.c
48         paint_image_proj.c
49         paint_mask.c
50         paint_ops.c
51         paint_stroke.c
52         paint_undo.c
53         paint_utils.c
54         paint_vertex.c
55         paint_vertex_proj.c
56         sculpt.c
57         sculpt_undo.c
58         sculpt_uv.c
59
60         paint_intern.h
61         sculpt_intern.h
62 )
63
64 if(WITH_INTERNATIONAL)
65         add_definitions(-DWITH_INTERNATIONAL)
66 endif()
67
68 add_definitions(${GL_DEFINITIONS})
69
70 blender_add_lib(bf_editor_sculpt_paint "${SRC}" "${INC}" "${INC_SYS}")