mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 09:45:03 +08:00
a04e01604c
* fix d3d12-memory-allocator * update version --------- Co-authored-by: Monica <v-liumonica@microsoft.com>
21 lines
655 B
CMake
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::"
|
|
) |