CMake
CMake可自动配置构建系统。它通过使用简单的配置文件(称为CMakeLists.txt
文件)来控制软件编译过程。CMake 可生成本地构建配置和工作区,供你在所选的编译器环境中使用。
您可以从Qt Creator 使用 CMake 构建桌面、移动和嵌入式设备的应用程序。或者,构建单个文件来测试您的更改。
支持的 CMake 版本
Qt Creator 如果您使用的是 CMake 3.14 或更高版本,则需要 CMake基于文件的 API。
对于使用旧版 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.