Qt6 核心的 CMake 命令

定義下列 CMake 命令,當加載 Qt6::Core 時,例如采用

find_package(Qt6 REQUIRED COMPONENTS Core)
					

另請參閱 CMake 命令參考 .

qt_add_android_permission

Adds an Android permission to the target executable.

qt_add_big_resources

將大二進製資源,編譯進目標代碼。

qt_add_binary_resources

從 Qt 資源文件列錶創建 RCC (資源編譯器) 文件。

qt_add_executable

Creates and finalizes an application target of a platform-specific type.

qt_add_library

創建並定稿庫。

qt_add_plugin

創建 Qt 插件目標。

qt_add_resources

將二進製資源編譯進源代碼。

qt_add_win_app_sdk

Adds the Windows App SDK library to the application.

qt_allow_non_utf8_sources

防止強製將源文件視為 UTF-8 for Windows。

qt_android_add_apk_target

Defines a build target that runs androiddeployqt to produce an APK.

qt_android_apply_arch_suffix

Configures the target binary's name to include an architecture-specific suffix.

qt_android_generate_deployment_settings

Generates the deployment settings file needed by androiddeployqt.

qt_deploy_qt_conf

Write a qt.conf file at deployment time.

qt_deploy_runtime_dependencies

Deploy Qt plugins, Qt and non-Qt libraries needed by an executable.

qt_deploy_translations

Deploy Qt translations needed by an executable.

qt_disable_unicode_defines

Prevents some unicode-related compiler definitions being set automatically on a target.

qt_extract_metatypes

Extracts metatypes from a Qt target and generates an associated metatypes.json file.

qt_finalize_project

Handles various common platform-specific tasks associated with a Qt project.

qt_finalize_target

Handles various common platform-specific tasks associated with Qt targets.

qt_generate_deploy_app_script

Generate a deployment script for an application.

qt_generate_deploy_script

Generate a custom deployment script.

qt_generate_moc

調用輸入文件中的 MOC (元對象編譯器)。

qt_import_plugins

指定要導入 (或排除) 的自定義插件集。

qt_policy

Modify the default behavior of Qt's CMake API.

qt_set_finalizer_mode

Customizes aspects of a target's finalization.

qt_standard_project_setup

Setup project-wide defaults to a standard arrangement.

qt_wrap_cpp

從源創建 .moc 文件。