mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-01 01:13:40 +00:00
Fix linking between third party projects
This commit is contained in:
parent
86177791d6
commit
1571fac5a3
@ -268,7 +268,9 @@ include_directories(${HARFBUZZ_INCLUDE_DIRS})
|
||||
if(USE_SHARED_GIFLIB)
|
||||
find_package(GIF REQUIRED)
|
||||
else()
|
||||
set(GIF_LIBRARY giflib)
|
||||
set(GIF_LIBRARIES giflib)
|
||||
set(GIF_INCLUDE_DIR ${GIFLIB_DIR}/lib)
|
||||
set(GIF_INCLUDE_DIRS ${GIFLIB_DIR}/lib)
|
||||
endif()
|
||||
include_directories(${GIF_INCLUDE_DIRS})
|
||||
|
13
third_party/CMakeLists.txt
vendored
13
third_party/CMakeLists.txt
vendored
@ -35,6 +35,15 @@ if(NOT USE_SHARED_GIFLIB)
|
||||
endif()
|
||||
|
||||
if(WITH_WEBP_SUPPORT)
|
||||
if(NOT USE_SHARED_LIBPNG)
|
||||
set(PNG_PNG_INCLUDE_DIR ${LIBPNG_DIR} CACHE STRING "")
|
||||
set(PNG_LIBRARY $<TARGET_FILE:png_static> CACHE FILEPATH "")
|
||||
endif()
|
||||
if(NOT USE_SHARED_JPEGLIB)
|
||||
set(JPEG_INCLUDE_DIR ${LIBJPEG_DIR} CACHE STRING "")
|
||||
set(JPEG_LIBRARY $<TARGET_FILE:jpeg> CACHE FILEPATH "")
|
||||
endif()
|
||||
|
||||
# Enable img2webp so "webpmux" library is built
|
||||
set(WEBP_BUILD_IMG2WEBP ON CACHE BOOL "Build the img2webp animation tool.")
|
||||
add_subdirectory(libwebp)
|
||||
@ -84,6 +93,10 @@ if(NOT USE_SHARED_FREETYPE)
|
||||
endif()
|
||||
|
||||
if(NOT USE_SHARED_HARFBUZZ)
|
||||
if(NOT USE_SHARED_FREETYPE)
|
||||
set(ENV{FREETYPE_DIR} ${FREETYPE_DIR})
|
||||
set(FREETYPE_LIBRARY $<TARGET_FILE:freetype> CACHE FILEPATH "")
|
||||
endif()
|
||||
set(HB_HAVE_FREETYPE ON CACHE BOOL "Enable freetype interop helpers")
|
||||
set(HB_HAVE_GRAPHITE2 OFF CACHE BOOL "Enable Graphite2 complementary shaper")
|
||||
set(HB_BUILTIN_UCDN ON CACHE BOOL "Use HarfBuzz provided UCDN")
|
||||
|
Loading…
x
Reference in New Issue
Block a user