externals: Use cmake subdirectory
This commit is contained in:
parent
c813876c5a
commit
7a8631cd45
7 changed files with 4 additions and 9 deletions
2
externals/CMakeLists.txt
vendored
2
externals/CMakeLists.txt
vendored
|
@ -145,7 +145,7 @@ add_subdirectory(nx_tzdb)
|
|||
|
||||
# VMA
|
||||
add_library(vma vma/vma.cpp)
|
||||
target_include_directories(vma PUBLIC ./vma/vma/include)
|
||||
target_include_directories(vma PUBLIC ./vma/VulkanMemoryAllocator/include)
|
||||
target_link_libraries(vma PRIVATE Vulkan::Headers)
|
||||
|
||||
if (NOT TARGET LLVM::Demangle)
|
||||
|
|
1
externals/vma/vma.cpp
vendored
1
externals/vma/vma.cpp
vendored
|
@ -4,4 +4,5 @@
|
|||
#define VMA_IMPLEMENTATION
|
||||
#define VMA_STATIC_VULKAN_FUNCTIONS 0
|
||||
#define VMA_DYNAMIC_VULKAN_FUNCTIONS 1
|
||||
|
||||
#include <vk_mem_alloc.h>
|
Loading…
Add table
Add a link
Reference in a new issue