Eclipse CDT 中具有多个二进制文件的项目

发布于 2024-08-28 19:37:19 字数 395 浏览 4 评论 0原文

我认为一个项目中存在多个二进制文件是很正常的。然而,对于 Eclipse CDT,我不知道如何设置 IDE 来完成工作。

我知道我可以创建多个项目 - 每个二进制文件一个。我知道我可以设置每个项目的依赖关系。但是,我不能将它们视为 Eclipse 中的一个项目。如果我想与版本控制系统(如 svn)共享代码,每个开发人员都必须单独导入项目。

我怀念的是 Visual Studio 中的解决方案(sln 文件)之类的东西。我应该创建一个项目并自己创建 make 文件吗?

我还没有尝试过,但是有一个可以导出和导入的“项目集”。这是解决方案吗?可以将其纳入版本控制吗?

我的目标是将所有内容都置于版本控制之下,而不仅仅是子项目。我无法想象 CDT 仅对单二进制应用程序有意义。

我怎样才能正常工作?

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.

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.

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?

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?

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

How can I work properly?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小…红帽 2024-09-04 19:37:19

我很确定CDT不支持子项目 ,这几乎为您留下了:

  • 每个“项目集”一个工作区每个
  • 二进制文件一个项目(就像您在问题中提到的)
  • 项目依赖项(就像您在问题中提到的)

就版本控制而言,这意味着:

对于每个需要共享库项目的项目。
简而言之,这意味着将各种组件(文件集)置于版本控制之下,其中一个组件引用其他组件的特定版本(其他组件的特定版本列表称为 配置,基于基于组件的方法开发)

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

  • one workspace per "set of projects"
  • one project per binary (like you mention in your question)
  • project dependencies (like you mention in your question)

In term of version control, that means:

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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文