QT_DEPLOY_SUPPORT
배포 지원을 설정하기 위해 포함할 파일 이름입니다.
이 변수는 Qt 6.3에 도입되었습니다.
참고: 이 변수는 기술 프리뷰에 있으며 향후 릴리스에서 변경될 수 있습니다.
참고: 이 변수의 값은 프로젝트 코드에서 절대 수정해서는 안 됩니다.
이 구성 단계 변수는 Core 패키지에 의해 설정됩니다. 이 변수는 Qt에서 제공하는 배포 API에 대한 액세스를 보장하기 위해 배포 스크립트의 첫 번째 줄로 사용하도록 되어 있습니다. 이러한 배포 스크립트는 CMake의 구성 단계에서는 실행되지 않습니다. 설치 중 또는 빌드 후 규칙의 일부로 실행됩니다.
다음 예제는 애플리케이션을 설치할 때 변수가 사용되는 한 가지 방법과 런타임 종속성을 보여줍니다:
cmake_minimum_required(VERSION 3.16...3.22) project(MyThings) # The following CMAKE_INSTALL_*DIR variables are used to initialize their # QT_DEPLOY_*_DIR counterparts. set(CMAKE_INSTALL_BINDIR "mybindir") set(CMAKE_INSTALL_LIBDIR "mylibdir") set(CMAKE_INSTALL_LIBEXECDIR "mylibexecdir") find_package(Qt6 REQUIRED COMPONENTS Core) qt_standard_project_setup() qt_add_executable(MyApp main.cpp) set(deploy_script "${CMAKE_CURRENT_BINARY_DIR}/deploy_MyApp.cmake") file(GENERATE OUTPUT ${deploy_script} CONTENT " set(QT_DEPLOY_PLUGINS_DIR \"mypluginsdir\") set(QT_DEPLOY_QML_DIR \"myqmldir\") set(QT_DEPLOY_TRANSLATIONS_DIR \"i18n\") include(\"${QT_DEPLOY_SUPPORT}\") qt_deploy_runtime_dependencies( EXECUTABLE \"\${QT_DEPLOY_BIN_DIR}/$<TARGET_FILE_NAME:MyApp>\" )") install(SCRIPT ${deploy_script})
qt_deploy_runtime_dependencies() 및 qt_deploy_qml_imports()도 참조하십시오 .
© 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.