0

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.

  • 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.
  • 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.

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. ;)

Best, Marius

4

1 に答える 1

1

私が覚えているように、KDevelop4にはネイティブ サポートがあります。一方CMakeLists.txt、単純なスクリプトとして直接編集して (エディター* から)、公式の GUIを使用しないのはなぜですか? CMake で Eclipse を使用したことはありませんが、Visual Studio では、プロジェクトまたはソリューションCMakeLists.txtファイルを編集すると、ソリューションが自動的に生成されます。Eclipse からも同様のことが期待されます。

Eclipse CDT4 ジェネレーター

より詳しい情報。

*: Notepad++には CMake ファイルのハイライトがあります。

于 2012-05-18T13:31:41.480 に答える