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.
v3.0.260818.1#0
Sep 22, 2026
windows
github.com/microsoft/cppwinrt
docs.microsoft.com/windows/uwp/cpp-and-winrt-apis
bea9a48f02
MIT
Manifest