vcpkg/ports/vulkan-hpp/portfile.cmake

15 lines
515 B
CMake
Raw Normal View History

2019-05-13 15:14:03 +08:00
# header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KhronosGroup/Vulkan-Hpp
2023-07-28 00:24:17 +08:00
REF "v${VERSION}"
2023-08-01 02:30:45 +08:00
SHA512 3783268de9c137218453431d03d4bb30a222dc7e94d7ca4eeab896884c8cada3e7a095f432e939efe8c6341773e64656dc141c5ce0f5ef0f49e77f7322e232f6
2019-05-13 15:14:03 +08:00
HEAD_REF master
)
file(COPY "${SOURCE_PATH}/vulkan/vulkan.hpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include/vulkan")
2019-05-13 15:14:03 +08:00
# Handle copyright
configure_file("${SOURCE_PATH}/LICENSE.txt" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)