mirror of https://github.com/axmolengine/axmol.git
Improve cmake [ci build]
This commit is contained in:
parent
36965d2e49
commit
fc3ffa3b5b
|
@ -99,6 +99,7 @@ if(BUILD_EXT_CHIPMUNK)
|
||||||
endif(BUILD_EXT_CHIPMUNK)
|
endif(BUILD_EXT_CHIPMUNK)
|
||||||
if(BUILD_EXT_FREETYPE)
|
if(BUILD_EXT_FREETYPE)
|
||||||
set(FT_WITH_ZLIB ON CACHE BOOL "Use system zlib instead of internal library." FORCE)
|
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)
|
add_subdirectory(freetype)
|
||||||
target_include_directories(external PUBLIC "freetype/include")
|
target_include_directories(external PUBLIC "freetype/include")
|
||||||
target_link_libraries(external freetype)
|
target_link_libraries(external freetype)
|
||||||
|
|
|
@ -32,4 +32,5 @@ set_target_properties(${target_name}
|
||||||
|
|
||||||
set_target_properties(${target_name} PROPERTIES
|
set_target_properties(${target_name} PROPERTIES
|
||||||
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}"
|
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||||
|
INTERFACE_COMPILE_DEFINITIONS PUGIXML_API=__declspec\(dllimport\)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue