将CMake项目导入Eclipse CDT [英] Importing a CMake project into Eclipse CDT
本文介绍了将CMake项目导入Eclipse CDT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个原生的 CMake 专案,我想使用 Eclipse IDE,它通过提供自动完成和其他功能使我的开发更容易。我似乎不能找到如何导入一个CMake项目在Eclipse中。
I have a native CMake project, and I want to use the Eclipse IDE with it so that it makes my development easier by providing auto-complete and and other features. I can't seem to find how to import the a CMake project in Eclipse.
PS:我打开其他IDE的建议,以适合与CMake。
PS: I am open for suggestions for other IDE's that work well with CMake.
推荐答案
KDevelop 4 是一个真棒IDE有很大的CMake支持。
KDevelop 4 is an awesome IDE with great CMake support.
对于Eclipse - 运行:
As for Eclipse - run this:
cd <project_dir>
cmake -G "Eclipse CDT4 - Unix Makefiles" ./
为你。
这篇关于将CMake项目导入Eclipse CDT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文