mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 00:15:39 +08:00
25 lines
760 B
CMake
25 lines
760 B
CMake
|
set(VCPKG_LIBRARY_LINKAGE dynamic)
|
||
|
|
||
|
vcpkg_from_github(
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
REPO KhronosGroup/Vulkan-Loader
|
||
|
REF "vulkan-sdk-${VERSION}"
|
||
|
SHA512 15a326480e8d47f35a5e0c08ac915e047c90f2b99e8b6ac483bc1835e5b8bf2fd759b6fbf61dae9f89103e91067e60ff5f1817ce6aebecf95529bcc6d1326e66
|
||
|
HEAD_REF main
|
||
|
)
|
||
|
|
||
|
vcpkg_cmake_configure(
|
||
|
SOURCE_PATH "${SOURCE_PATH}"
|
||
|
OPTIONS
|
||
|
-DBUILD_TESTS:BOOL=OFF
|
||
|
)
|
||
|
vcpkg_cmake_install()
|
||
|
vcpkg_fixup_pkgconfig()
|
||
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/VulkanLoader" PACKAGE_NAME VulkanLoader)
|
||
|
|
||
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
||
|
|
||
|
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
||
|
|
||
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" @ONLY)
|