查看 CMake 项目内容
Qt Creator 会自动运行 CMake,当你编辑项目中的CMakeLists.txt
配置文件时刷新视图中的项目信息。此外,在构建项目时也会刷新项目信息。
要禁用此行为,请转至首选项>CMake >General 并清除Autorun CMake 。
重新配置 CMake 项目
如果Qt Creator 无法加载 CMake 项目,Projects 视图会显示<File System> 项目节点,以避免扫描文件系统并更快地加载项目。节点显示的文件与文件系统视图相同。
要重新配置项目,请
- 选择Build >Clear CMake Configuration 。
- 选择Build >Run CMake 。
在项目视图中隐藏子文件夹名称
Projects 视图显示源文件所在子文件夹的名称。要隐藏子文件夹名称并只根据源组排列文件,请选择首选项>CMake >General ,然后清除Show subfolders inside source group folders 复选框。选择Build >Run CMake 后,更改生效。
另请参阅 "如何:使用 CMake 构建"、"CMake"、"打开项目"、"文件系统"和 "项目"。
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.