vcpkg/ports/skia/skiaConfig.cmake
Kai Pastor 01350d0b49
[skia] Misc fixes (#28971)
* Handle core opengl32 dependency

* Fix regressions for legacy config

* Transform frameworks and SDK during build

* Fix python3 configuration

* Update versions

* Drop unused dep

* Fix python3 again
2023-01-18 13:38:56 -08:00

20 lines
811 B
CMake

file(READ "${CMAKE_CURRENT_LIST_DIR}/usage" usage)
message(AUTHOR_WARNING "find_package(skia) is deprecated.\n${usage}")
include(CMakeFindDependencyMacro)
find_dependency(unofficial-skia)
if(NOT TARGET skia)
get_filename_component(z_vcpkg_skia_root "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(z_vcpkg_skia_root "${z_vcpkg_skia_root}" PATH)
get_filename_component(z_vcpkg_skia_root "${z_vcpkg_skia_root}" PATH)
if(z_vcpkg_skia_root STREQUAL "/")
set(z_vcpkg_skia_root "")
endif()
add_library(skia INTERFACE IMPORTED)
set_target_properties(skia PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${z_vcpkg_skia_root}/include"
INTERFACE_LINK_LIBRARIES unofficial::skia::skia
)
add_library(skia::skia ALIAS skia)
unset(z_vcpkg_skia_root)
endif()