mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 14:29:07 +08:00
3a7cb341b8
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
7 lines
254 B
Plaintext
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.
|