-
Notifications
You must be signed in to change notification settings - Fork 278
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
76 lines (65 loc) · 1.61 KB
/
Copy pathCMakeLists.txt
File metadata and controls
76 lines (65 loc) · 1.61 KB
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
# Freetype GL - A C OpenGL Freetype engine
#
# Distributed under the OSI-approved BSD 2-Clause License. See accompanying
# file `LICENSE` for more details.
find_package(harfbuzz REQUIRED)
include_directories(
${HARFBUZZ_INCLUDE_DIRS}
)
set(FREETYPE_GL_HB_HDR
freetype-gl.h
opengl.h
texture-atlas.h
texture-font.h
vec234.h
vector.h
vertex-attribute.h
vertex-buffer.h
freetype-gl-errdef.h
)
set(FREETYPE_GL_HB_SRC
platform.c
texture-atlas.c
texture-font.c
vector.c
vertex-attribute.c
vertex-buffer.c
)
if(freetype-gl_BUILD_SHARED)
add_library(freetype-gl-hb SHARED
${FREETYPE_GL_HB_SRC}
${FREETYPE_GL_HB_HDR}
)
SET_TARGET_PROPERTIES(
freetype-gl-hb
PROPERTIES
VERSION 0.3.2
SOVERSION 0)
target_link_libraries (freetype-gl-hb
${OPENGL_LIBRARY}
${FREETYPE_LIBRARIES}
${MATH_LIBRARY}
${GLEW_LIBRARY}
${HARFBUZZ_LIBRARIES}
)
else()
add_library(freetype-gl-hb STATIC
${FREETYPE_GL_HB_SRC}
${FREETYPE_GL_HB_HDR}
)
endif()
get_property(LIB64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS)
if ("${LIB64}" STREQUAL "TRUE")
set(LIBSUFFIX 64)
else()
set(LIBSUFFIX "")
endif()
set(INSTALL_LIB_DIR lib${LIBSUFFIX} CACHE PATH "Installation directory for libraries")
mark_as_advanced(INSTALL_LIB_DIR)
install(TARGETS freetype-gl-hb
ARCHIVE DESTINATION ${INSTALL_LIB_DIR}
LIBRARY DESTINATION ${INSTALL_LIB_DIR}
COMPONENT library)
install(FILES ${FREETYPE_GL_HB_HDR} DESTINATION include/harfbuzz
COMPONENT headers)
set(CMAKE_BUILD_TYPE Release)