OSG_TEXT_USE_FONTCONFIG cmake option added: Set to ON to enable attempt to use FontConfig in osgText; Disabled by default for iOS and Android

This commit is contained in:
konstantin.matveyev
2019-07-26 14:09:36 +03:00
parent b2daa32420
commit b0c89b137d
2 changed files with 10 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
IF(NOT OSG_BUILD_PLATFORM_IPHONE AND NOT ANDROID)
IF(OSG_TEXT_USE_FONTCONFIG)
find_package(Fontconfig MODULE)
ENDIF()
@@ -51,8 +51,11 @@ SET(TARGET_LIBRARIES
)
if(Fontconfig_FOUND)
MESSAGE(STATUS "osgText will be linked with FontConfig library")
list(APPEND TARGET_LIBRARIES Fontconfig::Fontconfig)
ADD_DEFINITIONS(-DWITH_FONTCONFIG)
else()
MESSAGE(STATUS "osgText will not be linked with FontConfig library")
endif()
SETUP_LIBRARY(${LIB_NAME})