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