Cleanup: remove contributors for CMake files
[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 # ***** END GPL LICENSE BLOCK *****
20
21 set(INC
22         .
23         ../blenkernel
24         ../blenlib
25         ../blentranslation
26         ../editors/include
27         ../gpu
28         ../makesdna
29         ../makesrna
30         ../imbuf
31         ../../../intern/guardedalloc
32         ../../../intern/glew-mx
33 )
34
35 set(INC_SYS
36         ${GLEW_INCLUDE_PATH}
37         ${FREETYPE_INCLUDE_DIRS}
38 )
39
40 set(SRC
41         intern/blf.c
42         intern/blf_dir.c
43         intern/blf_font.c
44         intern/blf_font_i18n.c
45         intern/blf_glyph.c
46         intern/blf_thumbs.c
47         intern/blf_util.c
48
49         BLF_api.h
50         intern/blf_internal.h
51         intern/blf_internal_types.h
52 )
53
54 if(WIN32)
55         list(APPEND SRC
56                 intern/blf_font_win32_compat.c
57         )
58 endif()
59
60 if(WITH_INTERNATIONAL)
61         add_definitions(-DWITH_INTERNATIONAL)
62 endif()
63
64 if(WITH_PYTHON)
65         add_definitions(-DWITH_PYTHON)
66         list(APPEND INC
67                 ../python
68         )
69 endif()
70
71 add_definitions(${GL_DEFINITIONS})
72
73 blender_add_lib(bf_blenfont "${SRC}" "${INC}" "${INC_SYS}")