qt_deploy_support
デプロイサポートを設定するためにインクルードするファイルの名前。
この変数は Qt 6.3 で導入されました。
注意: この変数はテクノロジープレビューであり、将来のリリースで変更される可能性があります。
注意: この変数の値は、プロジェクトのコードによって決して変更されるべきではありません。
この configure-phase 変数は Core パッケージによって設定されます。Qt が提供するデプロイメント API へのアクセスを確保するために、デプロイメント スクリプトの最初の行として使用されます。このようなデプロイスクリプトは CMake の configure フェーズでは実行されません。インストール中またはビルド後のルールの一部として実行されます。
次の例は、アプリケーションをインストールする際に、実行時の依存関係と共にこの変数を使用する方法の 1 つを示しています:
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.