简体   繁体   中英

How to set Eclipse for cmake project?

我有一个带有 cmake 的 c++ 项目,为了构建它,我想在 linux 的 eclipse ide 中集成该项目?我也用谷歌搜索了相同的内容,但没有得到适当的答案,请帮助我。提前谢谢.其他IDE也可以,有步骤导入项目没有蚂蚁错误。提前感谢您的帮助。

The cmake4eclipse Eclipse plugin from the Eclipse marketplace is able to create makefiles (or other buildscripts; it is your choice) from your CMakeLists.txt and build your Eclipse project. Once configured, there is no need to manually run cmake -G "Unix Makefiles" . Project settings are stored in the .cproject file and taken from your CMakeLists.txt .

It integrates to CDT, so using the plugin, You should be familar with CDT`s project preference pages (which may be confusing).

To have syntax highlighting in CMakeLists.txt , try cmake-editor .

DISCLAIMER: I am the author of cmake4eclipse .

Using CMake you can generate a project for Eclipse and then open it in the IDE. CMake will be called automatically to regenerate project if you make some changes at that level.

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