vcpkg/ports/d3d12-memory-allocator/CMakeLists.txt

21 lines
655 B
CMake
Raw Normal View History

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::"
)