C++自动生成 cmakelists.txt 的 IDE
我正在寻找一个可以自动从项目生成 cmake 文件的 IDE。理想情况下,我希望该项目独立于 IDE。我主要在 Linux 下工作,但 Windows 是一个主要(而且很棒)的操作系统,所以理想情况下它也可以在 Windows 上运行。我对此并不太担心,尽管在 Windows 上有 VS :)。
问候
编辑:是的,我有点看到我的错误。我应该要求一个生成 makefile 而不是 cmake 文件的 IDE,因为 cmake 层/步骤变得无用(如果 IDE 可以直接生成 makefile)。
I'm looking for an IDE that automatically generates a cmake file from the project. Ideally I would like the project to be independent of the IDE. I am mainly working under linux but Windows is a major (and great) OS so ideally it would run on Windows as well. I'm not too bothered about that though as on Windows there is VS :).
Regards
EDIT: Yeah, I sort of see my mistake. I should have asked for an IDE that generates makefiles instead of cmake files since the cmake layer/step becomes useless (if the IDE can directly generate a makefile).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
CMake 的目的是生成其他开发环境所依赖的 Makefile 和项目,因此您所要求的似乎有点倒退。 CMake 正是可以完成您所要求的工作的工具,但方向不同。
也就是说,KDevelop 4 可以选择使用
CMakeLists.txt
文件而不是通常的项目文件,但它工作得不太好,我已经放弃尝试使用它。相反,我手动编辑CMakeLists.txt
文件 - KDevelop 会适当地更新 GUI 以反映我的更改。The purpose of CMake is to generate the
Makefiles
and projects that other development environments rely on, so what you're asking seems a little backwards. CMake is exactly the tool that does what you're asking to do, but in a different direction.That said, KDevelop 4 has the option to use
CMakeLists.txt
files instead of the usual project file, but it doesn't work very well, and I've given up on trying to use it. Instead I edit theCMakeLists.txt
file by hand - and KDevelop helpfully updates the GUI appropriately to reflect my changes.