The DirectX Tool Kit for DX12 package is compatible with built-in CMake targets: find_package(directxtk12 CONFIG REQUIRED) target_link_libraries(main PRIVATE Microsoft::DirectXTK12)