C++/WinRT is a standard C++ language projection for the Windows Runtime.
Run the following Vcpkg command to install the port.
vcpkg install cppwinrt
The C++/WinRT package provides CMake targets:
find_package(cppwinrt CONFIG REQUIRED) target_link_libraries(main PRIVATE Microsoft::CppWinRT)
The CMake variable CPPWINRT_TOOL is also set to point to the .winmd to header command-line tool.
v2.0.250303.1#1
May 1, 2026
windows
github.com/microsoft/cppwinrt
docs.microsoft.com/windows/uwp/cpp-and-winrt-apis
8e6be0084f
MIT
Manifest