mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 08:39:01 +08:00
20 lines
667 B
CMake
20 lines
667 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO KhronosGroup/Vulkan-Headers
|
|
REF "vulkan-sdk-${VERSION}"
|
|
SHA512 475cd0c3249c7998e5e85390651a6652e229d65e42adf3b4d18f9f7509037d217e87de01632c9b4142d26ab295cd2272c2e88f897a5420d693a82ff7e4003157
|
|
HEAD_REF main
|
|
)
|
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only port
|
|
|
|
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DVULKAN_HEADERS_ENABLE_MODULE=OFF
|
|
-DVULKAN_HEADERS_ENABLE_TESTS=OFF
|
|
)
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|