CMake 特性参考

Qt6::Core

目标特性

QT_ANDROID_ABIS

List of ABIs that packages of a single target are built for

QT_ANDROID_DEPLOYMENT_DEPENDENCIES

覆盖被添加到目标部署中的 Qt 依赖

QT_ANDROID_DEPLOYMENT_SETTINGS_FILE

指定目标生成的部署设置文件的位置

QT_ANDROID_EXTRA_LIBS

要采用目标部署的 Extra 库

QT_ANDROID_EXTRA_PLUGINS

要采用目标部署的 Extra Qt 插件

QT_ANDROID_MIN_SDK_VERSION

Minimum Android SDK version

QT_ANDROID_NO_DEPLOY_QT_LIBS

Whether Qt shared libraries are packaged in the APK on Android

QT_ANDROID_PACKAGE_SOURCE_DIR

自定义 Android 包模板的路径

QT_ANDROID_SDK_BUILD_TOOLS_REVISION

Revision of Android build tools to use

QT_ANDROID_SYSTEM_LIBS_PREFIX

Specifies the location of Qt libraries on the target device

QT_ANDROID_TARGET_SDK_VERSION

Android target SDK version

QT_ANDROID_VERSION_CODE

Internal Android app version

QT_ANDROID_VERSION_NAME

Human-readable Android app version

QT_IOS_LAUNCH_SCREEN

Path to iOS launch screen storyboard

QT_QML_IMPORT_PATH

指定要搜索 QML 导入的目录列表

QT_QML_ROOT_PATH

覆盖应用程序 QML 目录的位置

QT_RESOURCE_PREFIX

Specifies the default Qt resource prefix

QT_WASM_INITIAL_MEMORY

Internal WebAssembly initial memory

QT_WASM_MAXIMUM_MEMORY

Internal WebAssembly maximum memory

QT_WASM_PTHREAD_POOL_SIZE

Internal WebAssembly thread pool size

qt_no_entrypoint

Specifies to inhibit linking against Qt's entrypoint lib

Source File Properties

QT_DISCARD_FILE_CONTENTS

Specifies that the given files should be empty in the resource file system

QT_RESOURCE_ALIAS

Specifies the Qt resource alias for a file in a resource

Global Properties

QT_TARGETS_FOLDER

Sets the FOLDER property for Qt-internal targets

Qt6::DBus

Source File Properties

CLASSNAME

Overrides the default interface class name

INCLUDE

Adds an include path

NO_NAMESPACE

Disables generation of a namespaced name

Qt6::Qml

Source File Properties

QT_QMLTC_FILE_BASENAME

Specifies a non-default .h and .cpp file name

QT_QML_INTERNAL_TYPE

Marks a QML file as providing an internal type

QT_QML_SINGLETON_TYPE

Marks a QML file as providing a singleton type

QT_QML_SKIP_CACHEGEN

Excludes a file from being compiled to byte code

QT_QML_SKIP_QMLDIR_ENTRY

Excludes a file from being added as a type to the QML module's typeinfo file

QT_QML_SKIP_QMLLINT

Prevents a file from being included in automatic qmllint processing

QT_QML_SKIP_TYPE_COMPILER

Excludes a file from being compiled to C++ using qmltc

QT_QML_SOURCE_TYPENAME

Overrides the type name provided by the file

QT_QML_SOURCE_VERSIONS

Specifies a custom set of versions for a type

Global Properties

QT_QMLLINTER_TARGETS_FOLDER

Sets the FOLDER property for targets that belong to the QML linter

Qt6::LinguistTools

目标特性

QT_EXCLUDE_FROM_TRANSLATION

Marks the target as excluded from translation

QT_EXCLUDE_SOURCES_FROM_TRANSLATION

List of source file paths that shall be excluded from translation

Directory Properties

QT_EXCLUDE_FROM_TRANSLATION

Marks the directory as excluded from translation

CMake 变量参考