1 2 3 4 5 6 7 8 9 10 11 12
cmake_minimum_required(VERSION 3.0) add_library(dxcommon src/dxcommon.cc) target_include_directories(dxcommon PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include) target_link_libraries(dxcommon PUBLIC DirectX-Headers D3D12.lib DXGI.lib)