diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index 4355dad..451382e 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -11,6 +11,7 @@ option(VMA_HPP_ENABLE_INSTALL "Install VulkanMemoryAllocator-Hpp" OFF) add_library(VulkanMemoryAllocator-Hpp INTERFACE) add_library(VulkanMemoryAllocator-Hpp::VulkanMemoryAllocator-Hpp ALIAS VulkanMemoryAllocator-Hpp) +add_library(VulkanMemoryAllocator::Hpp ALIAS VulkanMemoryAllocator-Hpp) target_include_directories(VulkanMemoryAllocator-Hpp INTERFACE $) if (TARGET Vulkan::HppModule) @@ -19,6 +20,7 @@ if (TARGET Vulkan::HppModule) # Set up VulkanMemoryAllocator-HppModule. add_library(VulkanMemoryAllocator-HppModule OBJECT) add_library(VulkanMemoryAllocator-Hpp::VulkanMemoryAllocator-HppModule ALIAS VulkanMemoryAllocator-HppModule) + add_library(VulkanMemoryAllocator::HppModule ALIAS VulkanMemoryAllocator-HppModule) target_sources(VulkanMemoryAllocator-HppModule PUBLIC FILE_SET CXX_MODULES FILES "${CMAKE_CURRENT_SOURCE_DIR}/vk_mem_alloc.cppm") diff --git a/include/vk_mem_alloc.hpp b/include/vk_mem_alloc.hpp index 6d1f64a..f9323c4 100644 --- a/include/vk_mem_alloc.hpp +++ b/include/vk_mem_alloc.hpp @@ -22,6 +22,11 @@ import vulkan; #include #endif +// volk +#ifdef VMA_HPP_ENABLE_VOLK +#include +#endif + #define VMA_HPP_NAMESPACE_STRING VULKAN_HPP_STRINGIFY(VMA_HPP_NAMESPACE) #define VMA_HPP_RAII_NAMESPACE_STRING VULKAN_HPP_STRINGIFY(VMA_HPP_NAMESPACE::VMA_HPP_RAII_NAMESPACE)