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)