Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions include/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)

if (TARGET Vulkan::HppModule)
Expand All @@ -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")
Expand Down
5 changes: 5 additions & 0 deletions include/vk_mem_alloc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ import vulkan;
#include <vulkan/vulkan.hpp>
#endif

// volk
#ifdef VMA_HPP_ENABLE_VOLK
#include <volk.h>
#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)

Expand Down