vcpkg/ports/cppwinrt/usage
Chuck Walbourn 3a7cb341b8
[cppwinrt] Update port for January 2024 release (#37452)
This updates the cppwinrt port to use the latest
Microsoft.Windows.CppWinRT package from NuGet. Includes clean up of the
portfile for modern best practices.

This also cleans up the cmake integration:

* Uses `cppwinrt_FOUND` instead of the nonstandard `CppWinRT_FOUND`
* Provides `CPPWINRT_TOOL` for being able to generate C++/WinRT headers
from .winmd files as custom commands
2024-03-14 12:27:37 -07:00

7 lines
254 B
Plaintext

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.