VS_WINRT_COMPONENT

From Get docs
Cmake/docs/3.21/prop tgt/vs winrt component


VS_WINRT_COMPONENT

New in version 3.1.


Mark a target as a Windows Runtime component for the Visual Studio generator. Compile the target with C++/CX language extensions for Windows Runtime. For SHARED and MODULE libraries, this also defines the _WINRT_DLL preprocessor macro.

Note

Currently this is implemented only by Visual Studio generators. Support may be added to other generators in the future.


© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/prop_tgt/VS_WINRT_COMPONENT.html