维护cmake项目(从Eclipse CDT4)

时间:2022-08-26 23:13:04

I'm having some difficulties with cmake (2.8.7) and Eclipse + CDT (3.7.1). I'm using a CMakeBuilder (http://www.cmakebuilder.com/), which I found via the search function here. Actually I thought, that'd be it.

我对cmake(2.8.7)和Eclipse + CDT(3.7.1)有一些困难。我使用的是CMakeBuilder (http://www.cmakebuilder.com/),这是我通过搜索函数找到的。事实上,我想,就是这样。

  • Problem is that it does not provide any import function either: So I need cmake to generate Eclipse CDT4 Makefiles initially, which requires me to maintain two separate build systems and to work on copies. One for deployment, one for development.
  • 问题是它也没有提供任何导入功能:所以我需要cmake在一开始就生成Eclipse CDT4 makefile,这需要我维护两个独立的构建系统,并在副本上工作。一个用于部署,一个用于开发。
  • Furthermore I'd need to copy my changes over into the original project, file by file, because I can just work on copies, that cmake generates together with the Makefiles. At the end: twice the work. Double-check integration each time.
  • 此外,我还需要将我的变更复制到原始的项目中,文件由文件,因为我可以在副本上工作,cmake和makefile一起生成。最后:两倍的工作。每次都仔细检查集成。

Is there anything one can do to work directly on a cmake project from Eclipse (or another sane IDE)? Mainly I need good C++ editing (very large set of libs, so the paths are a major problem, and cmake searches for these on every platform). I could maintain cmake on my own, but Eclipse (and other IDEs) miss a useful import settings. Some IDE would be nice though. ;)

从Eclipse(或另一个健全的IDE)上直接处理cmake项目,您能做些什么吗?主要我需要好的c++编辑(非常大的一组libs,所以路径是一个主要的问题,并且cmake在每个平台上搜索它们)。我可以自己维护cmake,但是Eclipse(和其他ide)错过了一个有用的导入设置。不过有些IDE还是不错的。,)

Best, Marius

最好的,马吕斯

1 个解决方案

#1


1  

As I remember KDevelop4 has native support. In other hand: why don't edit CMakeLists.txt directly as a simple script (from an editor*) and use the official GUI? I haven't used Eclipse with CMake, but in Visual Studio the solution is generated automatically after editing any of project or solution CMakeLists.txt file. I expect something similar from Eclipse, too.

我记得KDevelop4有本地支持。另一方面:为什么不编辑CMakeLists。txt直接作为一个简单的脚本(来自编辑器*)和使用官方GUI?我没有使用CMake使用Eclipse,但是在Visual Studio中,解决方案是在编辑任何项目或解决方案CMakeLists之后自动生成的。txt文件。我希望Eclipse也有类似的功能。

Eclipse CDT4 Generator

Eclipse CDT4发电机

More info.

更多信息。

*: Notepad++ has highlight for CMake files.

*:Notepad++高亮显示CMake文件。

#1


1  

As I remember KDevelop4 has native support. In other hand: why don't edit CMakeLists.txt directly as a simple script (from an editor*) and use the official GUI? I haven't used Eclipse with CMake, but in Visual Studio the solution is generated automatically after editing any of project or solution CMakeLists.txt file. I expect something similar from Eclipse, too.

我记得KDevelop4有本地支持。另一方面:为什么不编辑CMakeLists。txt直接作为一个简单的脚本(来自编辑器*)和使用官方GUI?我没有使用CMake使用Eclipse,但是在Visual Studio中,解决方案是在编辑任何项目或解决方案CMakeLists之后自动生成的。txt文件。我希望Eclipse也有类似的功能。

Eclipse CDT4 Generator

Eclipse CDT4发电机

More info.

更多信息。

*: Notepad++ has highlight for CMake files.

*:Notepad++高亮显示CMake文件。