Skip to content

Commit 96fbcf7

Browse files
committed
Update dependencies.cmake
1 parent 0664553 commit 96fbcf7

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

cmake/dependencies.cmake

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,19 @@ function(add_app_dependencies)
8787
)
8888
list(APPEND EXTERNAL_LINKS volk)
8989

90+
# Freetype
91+
CPMAddPackage(
92+
NAME freetype
93+
GITHUB_REPOSITORY libsdl-org/freetype
94+
GIT_TAG VER-2-13-3
95+
OPTIONS
96+
"FT_DISABLE_HARFBUZZ ON"
97+
"FT_WITH_HARFBUZZ OFF"
98+
SOURCE_DIR "${EXTERNAL_DIR}/freetype"
99+
)
100+
add_library(Freetype::Freetype ALIAS freetype)
101+
list(APPEND EXTERNAL_LINKS freetype)
102+
90103
# SDL
91104
# if (CONNECTION_MACHINE_BUILD_TESTS) # hack to allow SDL to build without window system on linux
92105
# set(SDL_UNIX_CONSOLE_BUILD ON)
@@ -113,19 +126,6 @@ function(add_app_dependencies)
113126
target_include_directories(stb_image INTERFACE ${stb_image_SOURCE_DIR})
114127
endif()
115128
list(APPEND EXTERNAL_LINKS stb_image)
116-
117-
# Freetype
118-
CPMAddPackage(
119-
NAME freetype
120-
GITHUB_REPOSITORY libsdl-org/freetype
121-
GIT_TAG VER-2-13-3
122-
# OPTIONS
123-
# "FT_DISABLE_HARFBUZZ ON"
124-
# "FT_WITH_HARFBUZZ OFF"
125-
SOURCE_DIR "${EXTERNAL_DIR}/freetype"
126-
)
127-
add_library(Freetype::Freetype ALIAS freetype)
128-
list(APPEND EXTERNAL_LINKS freetype)
129129

130130
# RmlUi
131131
CPMAddPackage(

0 commit comments

Comments
 (0)