mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 20:39:13 +08:00
fba81a6a54
* [vulkan-memory-allocator] Update VMA port to current ToT Contains fixes for gcc13 and adds streamlined CMake support. See this PR for the recent CMake fixes: https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/pull/350 * Update version database * Fix typo in usage, dedupe cmake.org link, move up 3.21+, remove extra newline. --------- Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
20 lines
1.0 KiB
Plaintext
20 lines
1.0 KiB
Plaintext
VulkanMemoryAllocator provides official find_package support. However, it requires the user to provide the include directory containing `vulkan/vulkan.h`. There are multiple ways to achieve this and VulkanMemoryAllocator is compatible with all of them.
|
|
|
|
find_package(Vulkan) # https://cmake.org/cmake/help/latest/module/FindVulkan.html, CMake 3.21+
|
|
find_package(VulkanMemoryAllocator CONFIG REQUIRED)
|
|
target_link_libraries(main PRIVATE Vulkan::Vulkan GPUOpen::VulkanMemoryAllocator)
|
|
|
|
or
|
|
|
|
find_package(Vulkan) # CMake 3.21+
|
|
find_package(VulkanMemoryAllocator CONFIG REQUIRED)
|
|
target_link_libraries(main PRIVATE Vulkan::Headers GPUOpen::VulkanMemoryAllocator)
|
|
|
|
or
|
|
|
|
find_package(VulkanHeaders CONFIG) # From the vulkan-headers port
|
|
find_package(VulkanMemoryAllocator CONFIG REQUIRED)
|
|
target_link_libraries(main PRIVATE Vulkan::Headers GPUOpen::VulkanMemoryAllocator)
|
|
|
|
See the documentation for more information on setting up your project: https://gpuopen-librariesandsdks.github.io/VulkanMemoryAllocator/html/index.html
|