Update CMakeLists.txt

This commit is contained in:
Kae 2024-02-20 17:39:16 +11:00
parent 533ad7f943
commit e891499a9f

View File

@ -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