Initial freetype support.
This commit is contained in:
parent
c10c5412b9
commit
a4d3019f04
9 changed files with 118 additions and 1 deletions
|
@ -1,8 +1,25 @@
|
|||
|
||||
set(fonts_LIB_DEPENDS "")
|
||||
|
||||
list(APPEND fonts_LIB_INCLUDES
|
||||
FontReader.cpp
|
||||
TrueTypeFont.cpp
|
||||
)
|
||||
|
||||
if(UNIX)
|
||||
find_package(Freetype QUIET)
|
||||
if(Freetype_FOUND)
|
||||
list(APPEND font_LIB_INCLUDES
|
||||
FreeTypeFontEngine.cpp
|
||||
)
|
||||
|
||||
list(APPEND fonts_LIB_DEPENDS
|
||||
Freetype::Freetype
|
||||
)
|
||||
else()
|
||||
message(STATUS "Did not find freetype - skipping font engine")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_library(fonts SHARED ${fonts_LIB_INCLUDES})
|
||||
|
||||
|
@ -10,6 +27,6 @@ target_include_directories(fonts PUBLIC
|
|||
"${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
)
|
||||
|
||||
target_link_libraries(fonts PUBLIC core)
|
||||
target_link_libraries(fonts PUBLIC core ${fonts_LIB_DEPENDS})
|
||||
set_property(TARGET fonts PROPERTY FOLDER src)
|
||||
set_target_properties( fonts PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )
|
Loading…
Add table
Add a link
Reference in a new issue