日食和cmake cdt4:在翻译中丢失
我有一个使用 cmake 的源外构建设置,并且我正在尝试生成一个 Eclipse 项目。我有一个源文件夹和一个单独的 Eclipse 构建文件夹,这两个文件夹是同级文件夹。
当我生成 Eclipse 项目时,源文件夹最终不会成为 Eclipse 项目的一部分。有没有办法注释目录,以便它最终作为源文件夹出现在项目中
由于编译阶段工作正常,我认为不需要在此处粘贴 cmake 文件,我敢打赌这种事情是一个常见问题因此必须有一种直接的方法来回避它。
ps,我还想知道是否有可能摆脱 Eclipse 项目资源管理器中显示的所有与 cmake/make 相关的垃圾。
I have an out-of-source build setup with cmake and I am trying to generate an Eclipse project. I have one source folder and a seperate build folder for eclipse, the two folders are siblings.
When I generate an Eclipse project the source folder does not end up as part of the eclipse project. Is there any way to annotate the directory so it ends up in the project as a source folder
Since the compile phase works fine, I don't see a need for pasting the cmake files here, I bet this sort of thing is a common issue and therefore there must be a straight-forward way to sidestep it.
p.s., I would also like to know if it is possible to get rid of all the cmake/make related gunk that shows up in the Eclipse project explorer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于这种情况,我所做的是将源目录添加为基于 Makefile 的项目,然后手动设置构建目录并将其添加到 Eclipse 中。
为了隐藏 CMake/Make 文件,我在项目资源管理器中使用了过滤器。
What I did for this situation is add the source directory as a Makefile-based project and manually set and add the build directory into Eclipse.
For hiding the CMake/Make files I used a filter in the project explorer.