QT_DEPLOY_SUPPORT

배포 지원을 설정하기 위해 포함해야 할 파일의 이름.

이 변수는 Qt 6.3에서 도입되었습니다.

참고: 이 변수의값은 프로젝트 코드에서 절대 수정해서는 안 됩니다.

이 configure 단계 변수는 Qt Core 패키지에 의해 설정됩니다. 이 변수는 Qt에서 제공하는 배포 API에 대한 접근을 보장하기 위해 모든 배포 스크립트의 첫 번째 줄로 사용되도록 의도되었습니다. 이러한 배포 스크립트는 CMake의 configure 단계에서는 실행되지 않습니다. 대신 설치 과정에서 또는 빌드 후 규칙의 일부로 실행됩니다.

다음 예제는 애플리케이션과 해당 런타임 종속성을 함께 설치할 때 이 변수를 사용하는 한 가지 방법을 보여줍니다:

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_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()도 참조하십시오 .

© 2026 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.