mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-09 22:20:07 +00:00
Reapply "Merge pull request #425 from abouvier/cmake-version"
This reverts commit dd5b5cb6f2
.
This commit is contained in:
parent
dd5b5cb6f2
commit
257138b8f5
@ -1,6 +1,6 @@
|
|||||||
cmake_minimum_required(VERSION 3.15...3.26)
|
cmake_minimum_required(VERSION 3.15...3.26)
|
||||||
|
|
||||||
project(VMA LANGUAGES CXX)
|
project(VMA VERSION 3.1.0 LANGUAGES CXX)
|
||||||
|
|
||||||
add_library(VulkanMemoryAllocator INTERFACE)
|
add_library(VulkanMemoryAllocator INTERFACE)
|
||||||
add_library(GPUOpen::VulkanMemoryAllocator ALIAS VulkanMemoryAllocator)
|
add_library(GPUOpen::VulkanMemoryAllocator ALIAS VulkanMemoryAllocator)
|
||||||
@ -14,11 +14,15 @@ endif()
|
|||||||
|
|
||||||
if (PROJECT_IS_TOP_LEVEL)
|
if (PROJECT_IS_TOP_LEVEL)
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
include(CMakePackageConfigHelpers)
|
||||||
|
|
||||||
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||||
install(TARGETS VulkanMemoryAllocator EXPORT VulkanMemoryAllocatorConfig INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
install(TARGETS VulkanMemoryAllocator EXPORT VulkanMemoryAllocatorConfig INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||||
install(EXPORT VulkanMemoryAllocatorConfig NAMESPACE "GPUOpen::" DESTINATION "share/cmake/VulkanMemoryAllocator")
|
install(EXPORT VulkanMemoryAllocatorConfig NAMESPACE "GPUOpen::" DESTINATION "share/cmake/VulkanMemoryAllocator")
|
||||||
|
|
||||||
|
write_basic_package_version_file(VulkanMemoryAllocatorConfigVersion.cmake COMPATIBILITY SameMajorVersion ARCH_INDEPENDENT)
|
||||||
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/VulkanMemoryAllocatorConfigVersion.cmake" DESTINATION "share/cmake/VulkanMemoryAllocator")
|
||||||
|
|
||||||
option(VMA_BUILD_DOCUMENTATION "Create and install the HTML based API documentation")
|
option(VMA_BUILD_DOCUMENTATION "Create and install the HTML based API documentation")
|
||||||
if(VMA_BUILD_DOCUMENTATION)
|
if(VMA_BUILD_DOCUMENTATION)
|
||||||
find_package(Doxygen REQUIRED)
|
find_package(Doxygen REQUIRED)
|
||||||
|
Loading…
Reference in New Issue
Block a user