mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 08:00:50 +00:00
add ft2
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@491 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -14,7 +14,8 @@ else()
|
||||
endif()
|
||||
option(CLASSIC "Use classic theme" OFF)
|
||||
option(USE_STB_IMAGE "Use stb_image" ON)
|
||||
option(USE_STB_TRUETYPE "Use stb_truetype" ON)
|
||||
option(USE_STB_TRUETYPE "Use stb_truetype" OFF)
|
||||
option(USE_FREETYPE2 "Use FreeType 2" ON)
|
||||
|
||||
file(
|
||||
GLOB
|
||||
@@ -76,6 +77,20 @@ if(USE_STB_TRUETYPE)
|
||||
)
|
||||
endif()
|
||||
|
||||
if(USE_FREETYPE2)
|
||||
target_compile_definitions(
|
||||
Mw
|
||||
PRIVATE
|
||||
USE_FREETYPE2
|
||||
)
|
||||
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(FT2 REQUIRED freetype2)
|
||||
list(APPEND INCLUDE_DIRS ${FT2_INCLUDE_DIRS})
|
||||
list(APPEND LIBRARY_DIRS ${FT2_LIBRARY_DIRS})
|
||||
list(APPEND LIBRARIES ${FT2_LIBRARIES})
|
||||
endif()
|
||||
|
||||
target_include_directories(
|
||||
Mw
|
||||
PRIVATE
|
||||
|
||||
Reference in New Issue
Block a user