简体   繁体   中英

CMake project generator for Eclipse cdt on Linux?

I have been looking for a good IDE for c++, and Eclipse CDT seems to be a good candidate. I develop(ed) my projects in CMake, which means I need to be able to generate an Eclipse project with CMake in order to use Eclipse. CMake has an configuration option for Eclipse, but it's old and incomplete.(My version 4.9 isn't supported anymore)

So I am wondering if there is another way to generate a Eclipse project using CMake, that is compatible with newer Eclipse versions. Does anyone know of one? The Eclipse project generator HAS to be separate, it can't be integrated into Eclipse itself, as I need the project source files to be in a different location than the build files.(For GIT)

Thanks!

I hope I understand you correctly, that you want to use the CMake to generate a "project file" that you can later use to work with the Eclipse CDT .

You can generate a " Unix Makefile " from CMake . The option appears in the drop down menu, when you click configure , if you start cmake with gui in Linux (by typing cmake-gui at the terminal).

And then create a new project in the Eclipse CDT IDE by using the " Makefile Project with Existing Code " option in the menu (File->New->Project->"Makefile Project with Existing Code").

In this way, you will be able to use the Eclipse CDT IDE with your project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM