Improve cmake [ci build]

This commit is contained in:
halx99 2021-05-13 01:03:11 +08:00
parent 36965d2e49
commit fc3ffa3b5b
2 changed files with 2 additions and 0 deletions

View File

@ -99,6 +99,7 @@ if(BUILD_EXT_CHIPMUNK)
endif(BUILD_EXT_CHIPMUNK)
if(BUILD_EXT_FREETYPE)
set(FT_WITH_ZLIB ON CACHE BOOL "Use system zlib instead of internal library." FORCE)
set(DISABLE_FORCE_DEBUG_POSTFIX ON CACHE BOOL "" FORCE)
add_subdirectory(freetype)
target_include_directories(external PUBLIC "freetype/include")
target_link_libraries(external freetype)

View File

@ -32,4 +32,5 @@ set_target_properties(${target_name}
set_target_properties(${target_name} PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}"
INTERFACE_COMPILE_DEFINITIONS PUGIXML_API=__declspec\(dllimport\)
)