Qt6 核心中的 CMake 命令
以下 CMake 命令在加载 Qt6::Core 时定义,例如用
find_package(Qt6 REQUIRED COMPONENTS Core)
另请参阅 CMake 命令参考。
为目标可执行文件添加 Android 权限。 | |
将大二进制资源编译为目标代码。 | |
从 Qt 资源文件列表创建 RCC 文件。 | |
创建并最终确定特定平台类型的应用程序目标。 | |
创建并最终确定一个库。 | |
创建 Qt 插件目标。 | |
将二进制资源编译为源代码。 | |
将 Windows App SDK 库添加到应用程序。 | |
防止强制将源文件视为 Windows UTF-8。 | |
定义运行 androiddeployqt 生成 APK 的构建目标。 | |
配置目标二进制文件的名称,使其包含特定架构的后缀。 | |
生成 androiddeployqt 所需的部署设置文件。 | |
在部署时编写 qt.conf 文件。 | |
部署可执行文件所需的 Qt 插件、Qt 和非 Qt 库。 | |
部署可执行程序所需的 Qt 翻译。 | |
防止在目标机上自动设置某些与 unicode 相关的编译器定义。 | |
从 Qt 目标机中提取元类型,并生成相关的 metatypes.json 文件。 | |
处理与 Qt 项目相关的各种常见平台特定任务。 | |
处理与 Qt 目标相关的各种常见平台特定任务。 | |
为应用程序生成部署脚本。 | |
生成自定义部署脚本 | |
在输入文件上调用 moc | |
指定要导入或排除的自定义插件集。 | |
修改 Qt CMake API 的默认行为。 | |
自定义目标最终完成的各个方面。 | |
将整个项目的默认设置设置为标准安排。 | |
从源代码创建 .moc 文件。 |
© 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.