QT_ADD_WIN_APP_SDK
응용 프로그램에 윈도우 앱 SDK 라이브러리를 추가합니다.
이 명령은 Qt 6.9에 도입되었습니다.
참고: 이 명령은 기술 프리뷰 버전이며 향후 릴리스에서 변경될 수 있습니다.
개요
qt_add_win_app_sdk(target)
버전 없는 명령을 사용할 수 없는 경우 qt6_add_win_app_sdk()
을 대신 사용합니다. 이 명령과 동일한 인수 집합을 지원합니다.
설명
프로젝트에 Windows 앱 SDK 포함 파일을 추가하고 필요한 라이브러리를 지정된 CMake 대상에 연결합니다. Windows 앱 SDK는 관리되는 앱에서 쉽게 사용할 수 있도록 NuGet 패키지로 제공됩니다. 그러나 관리되지 않는 C++ 애플리케이션의 경우 헤더 파일이 필요합니다. 이 함수는 다음 단계를 수행합니다:
- Windows 앱 SDK 및 cppwinrt.exe 도구를 찾습니다.
- cppwinrt.exe 도구를 사용하여 Windows 앱 SDK 헤더를 생성합니다.
- 해당 헤더 파일을 포함하고 라이브러리를 지정된 CMake 타겟에 링크합니다.
경고: 이 명령은 MSVC가 아닌 플랫폼에서는 지원되지 않습니다.
© 2025 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.