Add SKIA_OUT_DIR variable

This commit is contained in:
David Capello 2017-09-26 16:37:16 -03:00
parent 33507fd097
commit 7b67f72def

View File

@ -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()