qt_add_win_app_sdk
Adds the Windows App SDK library to the application.
This command was introduced in Qt 6.9.
Note: This command is in technology preview and may change in future releases.
Synopsis
qt_add_win_app_sdk(target)
If versionless commands are disabled, use qt6_add_win_app_sdk()
instead. It supports the same set of arguments as this command.
Description
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:
- Tries to find the Windows App SDK and cppwinrt.exe tool
- Generates Windows App SDK headers using the cppwinrt.exe tool
- Includes those header files and links the library to the given CMake target
Warning: This command is not supported on non-MSVC platforms.
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.