项目在Eclipse CDT的多个二进制文件 [英] Project with multiple binaries in Eclipse CDT

查看:223
本文介绍了项目在Eclipse CDT的多个二进制文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我觉得这是很正常的现象有一个项目中多个二进制文件。然而,与Eclipse CDT我不知道如何设置把事情做完的IDE。

I think it is quite normal to have more than one binary in a project. However, with Eclipse CDT I don't know how to set up the IDE to get things done.

我知道我可以创建几个项目 - 每个二进制之一。我知道我可以设置每个项目的依赖关系。但是,我不能把它们看作是在Eclipse一个项目。如果我想用一个版本控制系统(如SVN)共享code,每个开发者都有单独导入的项目。

I know I can create several projects - one per binary. And I know I can set the dependencies per project. However, I cannot regard them as one project in Eclipse. If I'd like to share the code with a version control system (like svn), each developer has to import the projects separately.

我怀念的是在Visual Studio中类似的解决方案(SLN文件)。我应该创建一个单一的项目,并通过自己创建make文件?

What I miss is something like the Solution (sln file) in Visual Studio. Should I create a single project and create the make files by myself?

我还没有尝试过了还,但有这个项目组,这可能是EX-和进口。这是解决方案?这能付诸版本控制?

I haven't tried it out yet, but there is this 'project set' which can be ex- and imported. Is this the solution? Can this be put into version control?

我的目标是把版本控制下的一切,不仅子项目。我无法想象,CDT也只感的单二进制应用程序。

My goal it to put everything under version control, not only subprojects. I cannot imagine that CDT makes only sense for single-binary applications.

我怎么能正常工作?

推荐答案

我敢肯定的 CDT不支持子项目,这让你pretty多用:

I am quite sure CDT doesn't support sub-projects, which leaves you pretty much with:


  • 按设置项目一个工作区

  • 每个二进制一个项目(如你在你的问题提)

  • 项目依赖关系(如你在你的问题提)

在版本控制期限,这意味着:

In term of version control, that means:

  • submodules (Git),
  • subrepos (Mercurial) or
  • external (SVN)

为每个项目需要一个共享库项目。结果
总之,这意味着将根据版本控制的各种组件(文件集),与一个参考其他的特定版本(其它组分的特定版本的该列表被称为<一href=\"http://stackoverflow.com/questions/2065559/using-two-git-repos-in-one-folder/2065749#2065749\">\"configuration\",基于一个 <一个href=\"http://stackoverflow.com/questions/933723/what-is-component-driven-development/933735#933735\">component-based方法 开发)

for each project needing a shared library project.
In short, that means putting under version control various components (set of files), with one referencing specific version of others (that list of specific versions of other components is called a "configuration", based on a component-based approach development)

这篇关于项目在Eclipse CDT的多个二进制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆