Adds the Windows App SDK library to the application.
This command was introduced in Qt 6.9.
注意: This command is in technology preview and may change in future releases.
qt_add_win_app_sdk(<TARGET>)
Since 6.10:
qt_add_win_app_sdk(<TARGET> [<PROPAGATION>])
若
无版本命令
被禁用,使用
qt6_add_win_app_sdk()
代替。它支持如此命令的一组相同自变量。
Adds Windows App SDK include files to the project, and links the necessary libraries to the given CMake target. Windows App SDK is provided as a NuGet package so it can be easily used in managed apps. However, for unmanaged C++ applications we need header files. The function takes the following steps:
PROPAGATION
Specifies the propagation visibility of include directories, link directories, and linked libraries for the target. This argument is passed directly to the following CMake commands:
It determines how these properties are applied to the target itself and whether they are propagated to other targets that link against it.
警告: This command is not supported on non-MSVC platforms.