Qt6 Core 中的 CMake 目标属性
CMake 命令支持以下 CMake 目标属性:
另请参阅 《CMake 属性参考》。
单个目标的软件包所针对的 ABI 列表。 | |
Android 应用的图标资源名称。 | |
Android 应用的名称。 | |
目标对应的 Android 构建目录的只读路径。 | |
Android 目标的 SDK 版本。 | |
覆盖添加到目标部署中的 Qt 依赖项。 | |
指定目标生成的部署设置文件的位置。 | |
要随目标一起部署的额外库。 | |
随目标一起部署的额外 Qt 插件。 | |
Android 应用的传统打包方式。 | |
Android SDK 的最低版本。 | |
Qt 共享库是否打包在 Android 的 APK 中。 | |
应用的包名。 | |
自定义 Android 打包模板的路径。 | |
要使用的 Android 构建工具版本。 | |
指定目标设备上 Qt 库的位置。 | |
Android 目标 SDK 版本。 | |
Android 应用的内部版本号。 | |
易于理解的 Android 应用版本。 | |
HarmonyOS 能力的屏幕方向策略。 | |
HarmonyOS 应用的包名。 | |
HarmonyOS 应用的图标。 | |
HarmonyOS 应用的标签。 | |
HarmonyOS 应用的名称。 | |
HarmonyOS 应用的供应商。 | |
HarmonyOS 应用的版本代码。 | |
HarmonyOS 应用程序的版本名称。 | |
HarmonyOS 应用的兼容 SDK 版本。 | |
HarmonyOS 应用的编译 SDK 版本。 | |
需随 HarmonyOS 目标一起部署的额外库。 | |
需随 HarmonyOS 目标一起部署的额外 Qt 插件。 | |
HarmonyOS 模块的描述。 | |
HarmonyOS 模块支持的设备类型。 | |
自定义 HarmonyOS 包模板的路径。 | |
HarmonyOS 应用程序的目标架构。 | |
HarmonyOS 应用程序的目标 SDK 版本。 | |
iOS 启动屏幕故事板的路径。 | |
指定禁止与 Qt 的入口点库进行链接。 | |
防止在 Windows 上强制将源文件视为 UTF-8。 | |
使应用程序不自动嵌入其共享库依赖项。 | |
将某个共享库排除在使用该库的应用程序包之外,使其不被嵌入其中。 | |
指定用于搜索 QML 导入的目录列表。 | |
覆盖应用程序 qml 目录的位置。 | |
指定默认的 Qt 资源前缀。 | |
内部 WebAssembly 初始内存。 | |
WebAssembly 内部最大内存。 | |
WebAssembly 内部线程池大小。 | |
在生成的 Windows 应用程序清单中的 UAC 执行级别。 | |
在生成的 Windows 应用程序清单中,程序集标识名称。 |
© 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.