1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
cmake_minimum_required(VERSION 3.25) project(dxcommon) add_library(dxcommon) target_sources(dxcommon PUBLIC dxcommon.h) target_sources(dxcommon PUBLIC FILE_SET cxx_modules TYPE CXX_MODULES FILES dxcommon.ixx) target_include_directories(dxcommon PUBLIC .) target_link_libraries(dxcommon PUBLIC DirectX-Headers D3D12.lib DXGI.lib)