vcpkg/ports/d3d12-memory-allocator/CMakeLists.txt
MonicaLiu a04e01604c
[d3d12-memory-allocator] Fix header file paths (#34086)
* fix d3d12-memory-allocator

* update version

---------

Co-authored-by: Monica <v-liumonica@microsoft.com>
2023-09-28 22:25:36 -07:00

21 lines
655 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} INTERFACE PUBLIC $<INSTALL_INTERFACE:include>)
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::"
)