forked from umlaeute/Gem
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ftgl.cmake
executable file
·120 lines (110 loc) · 3.84 KB
/
ftgl.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
set(FTGL_SRC "./ftgl/src")
set(libftgl_la_SOURCES
${FTGL_SRC}/FTBuffer.cpp
${FTGL_SRC}/FTCharmap.cpp
${FTGL_SRC}/FTCharmap.h
${FTGL_SRC}/FTCharToGlyphIndexMap.h
${FTGL_SRC}/FTCleanup.cpp
${FTGL_SRC}/FTCleanup.h
${FTGL_SRC}/FTContour.cpp
${FTGL_SRC}/FTContour.h
${FTGL_SRC}/FTFace.cpp
${FTGL_SRC}/FTFace.h
${FTGL_SRC}/FTGL.cpp
${FTGL_SRC}/FTGlyphContainer.cpp
${FTGL_SRC}/FTGlyphContainer.h
${FTGL_SRC}/FTInternals.h
${FTGL_SRC}/FTLibrary.cpp
${FTGL_SRC}/FTLibrary.h
${FTGL_SRC}/FTList.h
${FTGL_SRC}/FTPoint.cpp
${FTGL_SRC}/FTSize.cpp
${FTGL_SRC}/FTSize.h
${FTGL_SRC}/FTVector.h
${FTGL_SRC}/FTVectoriser.cpp
${FTGL_SRC}/FTVectoriser.h
${FTGL_SRC}/FTUnicode.h
)
set(ftgl_headers
${FTGL_SRC}/FTGL/ftgl.h
${FTGL_SRC}/FTGL/FTBBox.h
${FTGL_SRC}/FTGL/FTBuffer.h
${FTGL_SRC}/FTGL/FTPoint.h
${FTGL_SRC}/FTGL/FTGlyph.h
${FTGL_SRC}/FTGL/FTBitmapGlyph.h
${FTGL_SRC}/FTGL/FTBufferGlyph.h
${FTGL_SRC}/FTGL/FTExtrdGlyph.h
${FTGL_SRC}/FTGL/FTOutlineGlyph.h
${FTGL_SRC}/FTGL/FTPixmapGlyph.h
${FTGL_SRC}/FTGL/FTPolyGlyph.h
${FTGL_SRC}/FTGL/FTTextureGlyph.h
${FTGL_SRC}/FTGL/FTFont.h
${FTGL_SRC}/FTGL/FTGLBitmapFont.h
${FTGL_SRC}/FTGL/FTBufferFont.h
${FTGL_SRC}/FTGL/FTGLExtrdFont.h
${FTGL_SRC}/FTGL/FTGLOutlineFont.h
${FTGL_SRC}/FTGL/FTGLPixmapFont.h
${FTGL_SRC}/FTGL/FTGLPolygonFont.h
${FTGL_SRC}/FTGL/FTGLTextureFont.h
${FTGL_SRC}/FTGL/FTGLTriangleExtractorFont.h
${FTGL_SRC}/FTGL/FTLayout.h
${FTGL_SRC}/FTGL/FTSimpleLayout.h
)
set(ftglyph_sources
${FTGL_SRC}/FTGlyph/FTGlyph.cpp
${FTGL_SRC}/FTGlyph/FTGlyphImpl.h
${FTGL_SRC}/FTGlyph/FTGlyphGlue.cpp
${FTGL_SRC}/FTGlyph/FTBitmapGlyph.cpp
${FTGL_SRC}/FTGlyph/FTBitmapGlyphImpl.h
${FTGL_SRC}/FTGlyph/FTBufferGlyph.cpp
${FTGL_SRC}/FTGlyph/FTBufferGlyphImpl.h
${FTGL_SRC}/FTGlyph/FTExtrudeGlyph.cpp
${FTGL_SRC}/FTGlyph/FTExtrudeGlyphImpl.h
${FTGL_SRC}/FTGlyph/FTOutlineGlyph.cpp
${FTGL_SRC}/FTGlyph/FTOutlineGlyphImpl.h
${FTGL_SRC}/FTGlyph/FTPixmapGlyph.cpp
${FTGL_SRC}/FTGlyph/FTPixmapGlyphImpl.h
${FTGL_SRC}/FTGlyph/FTPolygonGlyph.cpp
${FTGL_SRC}/FTGlyph/FTPolygonGlyphImpl.h
${FTGL_SRC}/FTGlyph/FTTextureGlyph.cpp
${FTGL_SRC}/FTGlyph/FTTextureGlyphImpl.h
${FTGL_SRC}/FTGlyph/FTTriangleExtractorGlyph.cpp
${FTGL_SRC}/FTGlyph/FTTriangleExtractorGlyphImpl.h
)
set(ftfont_sources
${FTGL_SRC}/FTFont/FTFont.cpp
${FTGL_SRC}/FTFont/FTFontImpl.h
${FTGL_SRC}/FTFont/FTFontGlue.cpp
${FTGL_SRC}/FTFont/FTBitmapFont.cpp
${FTGL_SRC}/FTFont/FTBitmapFontImpl.h
${FTGL_SRC}/FTFont/FTBufferFont.cpp
${FTGL_SRC}/FTFont/FTBufferFontImpl.h
${FTGL_SRC}/FTFont/FTExtrudeFont.cpp
${FTGL_SRC}/FTFont/FTExtrudeFontImpl.h
${FTGL_SRC}/FTFont/FTOutlineFont.cpp
${FTGL_SRC}/FTFont/FTOutlineFontImpl.h
${FTGL_SRC}/FTFont/FTPixmapFont.cpp
${FTGL_SRC}/FTFont/FTPixmapFontImpl.h
${FTGL_SRC}/FTFont/FTPolygonFont.cpp
${FTGL_SRC}/FTFont/FTPolygonFontImpl.h
${FTGL_SRC}/FTFont/FTTextureFont.cpp
${FTGL_SRC}/FTFont/FTTextureFontImpl.h
${FTGL_SRC}/FTFont/FTTriangleExtractorFont.cpp
${FTGL_SRC}/FTFont/FTTriangleExtractorFontImpl.h
)
set(ftlayout_sources
${FTGL_SRC}/FTLayout/FTLayout.cpp
${FTGL_SRC}/FTLayout/FTLayoutImpl.h
${FTGL_SRC}/FTLayout/FTLayoutGlue.cpp
${FTGL_SRC}/FTLayout/FTSimpleLayout.cpp
${FTGL_SRC}/FTLayout/FTSimpleLayoutImpl.h
)
if(UNIX)
add_compile_options(-Wno-deprecated -Wno-conversion)
endif()
add_library(ftgl STATIC ${libftgl_la_SOURCES} ${ftgl_headers} ${ftglyph_sources} ${ftfont_sources} ${ftlayout_sources})
target_compile_definitions(ftgl PRIVATE PACKAGE_VERSION="2.3.14")
target_compile_definitions(ftgl PRIVATE __FUNC__="func")
if(WIN32)
target_compile_definitions(ftgl PRIVATE _USE_MATH_DEFINES=1 GL_SILENCE_DEPRECATION=1)
endif()