CMake
CMake可自动完成构建系统的配置。它通过使用名为CMakeLists.txt 的简单配置文件来控制软件的编译过程。CMake 会生成原生构建配置和工作区,供您在所选的编译环境中使用。
您可以使用Qt Creator 中的CMake来构建面向桌面、移动设备以及嵌入式设备的应用程序。或者,构建单个文件以测试您的更改。
支持的 CMake 版本
Qt Creator 需要CMake 的基于文件的 API,因此您需要 CMake 3.14 或更高版本。
对于安装了较旧版本 CMake 的系统,仅提供变通方案:
另请参阅 《配置项目以进行构建》、《配置项目以进行运行》、《操作指南:使用 CMake 构建》、《使用 CMake 构建项目》、《调试 CMake 项目文件》、《将应用程序部署到远程 Linux 设备》、《打开项目》以及《使用编译数据库》。
Copyright © The Qt Company Ltd. and other contributors. 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.