Fix T56657: Crash when creating a collection instance containing probes
[blender.git] / source / blender / blenfont / 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 # The Original Code is Copyright (C) 2008, Blender Foundation
18 # All rights reserved.
19 #
20 # The Original Code is: all of this file.
21 #
22 # ***** END GPL LICENSE BLOCK *****
23
24 set(INC
25         .
26         ../blenkernel
27         ../blenlib
28         ../blentranslation
29         ../editors/include
30         ../gpu
31         ../makesdna
32         ../makesrna
33         ../imbuf
34         ../../../intern/guardedalloc
35         ../../../intern/glew-mx
36 )
37
38 set(INC_SYS
39         ${GLEW_INCLUDE_PATH}
40         ${FREETYPE_INCLUDE_DIRS}
41 )
42
43 set(SRC
44         intern/blf.c
45         intern/blf_dir.c
46         intern/blf_font.c
47         intern/blf_font_i18n.c
48         intern/blf_glyph.c
49         intern/blf_thumbs.c
50         intern/blf_util.c
51
52         BLF_api.h
53         intern/blf_internal.h
54         intern/blf_internal_types.h
55 )
56
57 if(WIN32)
58         list(APPEND SRC
59                 intern/blf_font_win32_compat.c
60         )
61 endif()
62
63 if(WITH_INTERNATIONAL)
64         add_definitions(-DWITH_INTERNATIONAL)
65 endif()
66
67 if(WITH_PYTHON)
68         add_definitions(-DWITH_PYTHON)
69         list(APPEND INC
70                 ../python
71         )
72 endif()
73
74 add_definitions(${GL_DEFINITIONS})
75
76 blender_add_lib(bf_blenfont "${SRC}" "${INC}" "${INC_SYS}")