mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Add GpFontHandler_FreeType2 to CMake
Also add stddef.h include to GpRenderedGlyphMetrics.h to make size_t visible. Does MSVC provide size_t by default, or via stdint.h? This prevents compilation and I can't see how this would have compiled on Windows otherwise.
This commit is contained in:
@@ -442,4 +442,20 @@ target_include_directories(unpacktool PRIVATE
|
||||
target_link_libraries(unpacktool PortabilityLayer MacRomanConversion)
|
||||
|
||||
|
||||
find_package(Freetype)
|
||||
if(FREETYPE_FOUND)
|
||||
add_library(GpFontHandler_FreeType2 STATIC
|
||||
GpFontHandler_FreeType2/GpFontHandler_FreeType2.cpp
|
||||
)
|
||||
|
||||
target_include_directories(GpFontHandler_FreeType2 PRIVATE
|
||||
Common
|
||||
GpCommon
|
||||
"${FREETYPE_INCLUDE_DIR_ft2build}"
|
||||
)
|
||||
|
||||
target_link_libraries(GpFontHandler_FreeType2 PRIVATE Freetype::Freetype)
|
||||
endif()
|
||||
|
||||
|
||||
install (TARGETS ${EXECNAME})
|
||||
|
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
struct GpRenderedGlyphMetrics
|
||||
|
Reference in New Issue
Block a user