mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 20:23:41 +08:00
394e6f0997
* Added d3d12 memory allocator port. * Fixed leftover name from vulkan memory allocator. * Remove single header patch. * Don't apply patch. * Properly set interface sources. * Bump version and update manifest format. * Build static library instead of using an interface target. * Properly export and fixup config. * Update baseline. * Remove `PREFER_NINJA`. Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update version. * Use `version-date` instead of `version`. * Update baseline. * Remove leftover version. Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
21 lines
625 B
CMake
21 lines
625 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
project(d3d12-memory-allocator)
|
|
|
|
add_library(${PROJECT_NAME} STATIC
|
|
"src/D3D12MemAlloc.h"
|
|
"src/D3D12MemAlloc.cpp"
|
|
)
|
|
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES PUBLIC_HEADER "src/D3D12MemAlloc.h")
|
|
#target_include_directories(${PROJECT_NAME} PRIVATE "src/")
|
|
|
|
install(
|
|
TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}-config
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
PUBLIC_HEADER DESTINATION include/
|
|
)
|
|
install(
|
|
EXPORT ${PROJECT_NAME}-config DESTINATION cmake/
|
|
NAMESPACE "unofficial::"
|
|
) |