mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-06 06:58:15 +00:00
Add SKIA_OUT_DIR variable
This commit is contained in:
parent
33507fd097
commit
7b67f72def
@ -69,13 +69,17 @@ if(USE_SKIA_BACKEND)
|
||||
add_definitions(-DSK_SAMPLES_FOR_X)
|
||||
endif()
|
||||
|
||||
if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||
set(SKIA_BUILD_OUT_DIR "${SKIA_DIR}/out/Debug")
|
||||
if(NOT SKIA_DIR)
|
||||
set(SKIA_OUT_DIR "" CACHE PATH "Skia output directory")
|
||||
else()
|
||||
set(SKIA_BUILD_OUT_DIR "${SKIA_DIR}/out/Release")
|
||||
if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||
set(SKIA_OUT_DIR "${SKIA_DIR}/out/Debug" CACHE PATH "Skia output directory")
|
||||
else()
|
||||
set(SKIA_OUT_DIR "${SKIA_DIR}/out/Release" CACHE PATH "Skia output directory")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
find_library(SKIA_LIBRARY skia PATH "${SKIA_BUILD_OUT_DIR}")
|
||||
find_library(SKIA_LIBRARY skia PATH "${SKIA_OUT_DIR}")
|
||||
if(WIN32)
|
||||
find_library(SKIA_OPENGL_LIBRARY opengl32)
|
||||
else()
|
||||
|
Loading…
Reference in New Issue
Block a user