Fix #35640, part 2. Check id.lib in poll functions for operators which do critical...
[blender.git] / source / blender / editors / gpencil / 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         ../../imbuf
27         ../../makesdna
28         ../../makesrna
29         ../../windowmanager
30         ../../../../intern/guardedalloc
31 )
32
33 set(INC_SYS
34         ${GLEW_INCLUDE_PATH}
35 )
36
37 set(SRC
38         drawgpencil.c
39         editaction_gpencil.c
40         gpencil_buttons.c
41         gpencil_edit.c
42         gpencil_ops.c
43         gpencil_paint.c
44         gpencil_undo.c
45
46         gpencil_intern.h
47 )
48
49 if(WITH_INTERNATIONAL)
50         add_definitions(-DWITH_INTERNATIONAL)
51 endif()
52
53 blender_add_lib(bf_editor_gpencil "${SRC}" "${INC}" "${INC_SYS}")