CMake Command Reference
CMake命令参考
Qt6::Core
| Compiles big binary resources into object code 将大型二进制资源编译成目标代码 | |
| Creates an RCC file from a list of Qt resource files 从Qt资源文件列表创建RCC文件 | |
| Creates and finalizes an application target of a platform-specific type 创建并最终确定平台特定类型的应用程序目标 | |
| Creates and finalizes a library 创建并完成库 | |
| Creates a Qt plugin target 创建一个Qt插件目标 | |
| Compiles binary resources into source code 将二进制资源编译成源代码 | |
| Prevents forcing source files to be treated as UTF-8 for Windows 防止在Windows中强制将源文件视为UTF-8 | |
| Defines a build target that runs androiddeployqt to produce an APK 定义运行androiddeployqt以生成APK的生成目标 | |
| Configures the target binary's name to include an architecture-specific suffix 将目标二进制文件的名称配置为包含特定于体系结构的后缀 | |
| Generates the deployment settings file needed by androiddeployqt 生成androiddeployqt所需的发布设置文件 | |
| Write a qt.conf file at deployment time 发布时写一个qt.conf文件 | |
| Deploy Qt plugins, Qt and non-Qt libraries needed by an executable 发布可执行文件所需的Qt插件、Qt和非Qt库 | |
| Prevents some unicode-related compiler definitions being set automatically on a target 防止在目标上自动设置某些与unicode相关的编译器定义 | |
| Extracts metatypes from a Qt target and generates an associated metatypes.json file 从Qt目标提取元类型并生成关联的metatypes.json文件 | |
| Handles various common platform-specific tasks associated with Qt project 处理与Qt项目相关的各种常见平台特定任务 | |
| Handles various common platform-specific tasks associated with Qt targets 处理与Qt目标相关的各种常见平台特定任务 | |
| Generate a deployment script for an application 为应用程序生成发布脚本 | |
| Calls moc on an input file 在输入文件上调用moc | |
| Specifies a custom set of plugins to import for a static Qt build 指定要为静态Qt构建导入的自定义插件集 | |
| Customizes aspects of a target's finalization 自定义目标最终确定的各个方面 | |
| Setup project-wide defaults to a standard arrangement 设置项目范围默认为标准排列 | |
| Creates .moc files from sources 创造.moc文件源 |
Qt6::DBus
| Generates an adaptor class for a D-Bus interface 为D总线接口生成适配器类 | |
| Generates C++ sources implementing an interface for a D-Bus interface description file 生成C++代码,实现D-总线接口描述文件的接口 | |
| Generates C++ sources implementing interfaces for D-Bus interface description files 生成C++源代码,实现D-总线接口描述文件的接口 | |
| Generates a D-Bus interface from a header file 从头文件生成D-Bus接口 |
Qt6::LinguistTools
| Add targets to transform Qt Linguist .ts files into .qm files 添加目标让Qt语言学家把.ts文件转成.qm文件 | |
| Add targets to generate or update Qt Linguist .ts files 添加目标让Qt语言学家生成或更新.ts文件 | |
| Compiles Qt Linguist .ts files into .qm files 编译,让Qt语言学家的.ts文件转成.qm文件 | |
| Add targets to update and transform Qt Linguist .ts files into .qm files 添加目标,让Qt语言学家把.ts文件更新和转换成.qm文件 | |
| Sets up the Qt Linguist translation toolchain 建立Qt语言学家翻译工具链 |
Qt6::Qml
| Defines a QML module 定义一个QML模块 | |
| Defines a plugin associated with a QML module 定义与QML模块关联的插件 | |
| Deploy the runtime components of QML modules needed by an executable 发布可执行文件所需的QML模块的运行时组件 | |
| Generate a deployment script for a QML application 为QML应用程序生成发布脚本 | |
| Registers types from one target in a QML module 在QML模块中注册来自一个目标的类型 | |
| Ensures QML plugins needed by a target are imported for static builds 确保为静态构建导入目标所需的QML插件 | |
| Retrieve information about a QML module 检索有关QML模块的信息 | |
| Compiles QML files (.qml) to C++ source code with qmltc 用qmltc编译QML文件(.qml)到C++源代码 | |
| Add qml files and resources to an existing QML module target 向现有qml模块目标添加qml文件和资源 |
Qt6::RemoteObjects
| Creates C++ header files for source and replica types from the Qt Remote Objects .rep files 为Qt远程对象创建源和副本类型的C++头文件.rep文件 | |
| Creates C++ header files for replica types from the Qt Remote Objects .rep files 为Qt远程对象创建副本类型的C++头文件.rep文件 | |
| Creates C++ header files for source types from the Qt Remote Objects .rep files 从Qt远程对象创建源类型的C++头文件.rep文件 | |
| Creates .rep files from the QObject header files 从QObject头文件创建.rep文件 |
Qt6::Scxml
Qt6::Widgets
| Creates sources for .ui files 为用户界面文件创建源代码 |
Qt6::WebEngineCore
| Converts the hunspell dictionary format into bdict binary format 将拼写词典格式转换为bdict二进制格式 |
本文详细介绍了CMake与Qt6集成时的各种命令,包括资源编译、应用创建、库构建、插件管理等。通过qt_add_big_resources、qt_add_library、qt_add_plugin等命令,开发者可以高效地进行Qt项目的构建和部署。同时,还涵盖了Qt的D-Bus、QML、远程对象和Scxml等模块的相关命令,为Qt应用的开发提供了全面的工具支持。
1466

被折叠的 条评论
为什么被折叠?



