- Qt 6.9
- Qt Core
- CMake Commands in Qt6 Core
- qt_add_win_app_sdk
- Qt 6.9.1 Reference Documentation

# 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:

1. Tries to find the Windows App SDK and cppwinrt.exe tool
2. Generates Windows App SDK headers using the cppwinrt.exe tool
3. Includes those header files and links the library to the given CMake target

Warning: This command is not supported on non-MSVC platforms.