2023-06-14 22:49:59 +10:00
|
|
|
# SPDX-FileCopyrightText: 2022 Blender Foundation
|
|
|
|
|
#
|
2022-11-23 14:42:11 +01:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
|
|
set(INC
|
|
|
|
|
.
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
set(INC_SYS
|
|
|
|
|
${VULKAN_INCLUDE_DIRS}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
set(SRC
|
|
|
|
|
vk_mem_alloc_impl.cc
|
|
|
|
|
|
|
|
|
|
vk_mem_alloc.h
|
|
|
|
|
)
|
|
|
|
|
|
2023-10-05 13:59:09 +11:00
|
|
|
set(LIB
|
|
|
|
|
)
|
|
|
|
|
|
2022-11-23 14:42:11 +01:00
|
|
|
blender_add_lib(extern_vulkan_memory_allocator "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|
|
|
|
|
|
2024-03-07 19:56:58 +11:00
|
|
|
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
|
2022-11-23 14:42:11 +01:00
|
|
|
target_compile_options(extern_vulkan_memory_allocator
|
|
|
|
|
PRIVATE "-Wno-nullability-completeness"
|
|
|
|
|
)
|
|
|
|
|
endif()
|