diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-02-20 17:39:16 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-02-20 17:39:16 +1100 |
commit | e891499a9f568d26747ae227583c924d06ddd47f (patch) | |
tree | 2deb009eaa99cf27a25fbf47731552d76ad82c9a /source/CMakeLists.txt | |
parent | 533ad7f94396a86b3a398c94879e7a5917d617e4 (diff) |
Update CMakeLists.txt
Diffstat (limited to 'source/CMakeLists.txt')
-rw-r--r-- | source/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index ec4fe0f..cdc1ea6 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -431,6 +431,14 @@ INCLUDE_DIRECTORIES (SYSTEM ${OGGVORBIS_INCLUDE_DIR} ) +IF (TARGET freetype AND NOT TARGET Freetype::Freetype) + add_library(Freetype::Freetype ALIAS freetype) +ELSEIF (TARGET Freetype::Freetype AND NOT TARGET freetype) + add_library(freetype ALIAS Freetype::Freetype) +ELSE () + MESSAGE (FATAL_ERROR "Could not find Freetype") +ENDIF () + SET (STAR_EXT_LIBS ${STAR_EXT_LIBS} ZLIB::ZLIB PNG::PNG |