Configuring a CMake C++/Java Project to work with Eclipse

爱⌒轻易说出口 提交于 2019-12-06 10:55:06

First of all you need the Eclipse CDT package.

Then you need to generate the Eclipse CDT project: cmake -G "Eclipse CDT4 - Unix Makefiles" /path/to/source/dir.

The last step you need to do is import the project in the current workspace: File -> Import... -> Existing Projects Into Workspace.

Configure your project in CMake to use the Eclipse CDT Generator. That will generate the correct makefiles for eclipse.

You also might be interested in reading the follow CMake wiki pages that talk about using Eclipse: http://www.cmake.org/Wiki/Eclipse_CDT4_Generator http://www.cmake.org/Wiki/CMake:Eclipse_UNIX_Tutorial#The_Options

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!