Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Multiple artifacts within a single project
Multiple artifacts within a single project [message #195894] Mon, 09 July 2007 16:21 Go to next message
Eclipse UserFriend
Are multiple artifacts within a single CDT C/C++ project prohibited?

Is it possible (and easy) to have two different source trees within a
single CDT C/C++ project produce two separate artifacts?

For example, within one project, could one subtree produce a.dll and
another subtree produce b.exe? Or, should there be two projects, one for
each artifact?

How about the case when both the shared and static library of a single
project need to be built?

I apologize if these issues have already been discussed, I was unable to
find clear answers to them and thought it was best to ask.

Thank you,
-Jonathan
Re: Multiple artifacts within a single project [message #635185 is a reply to message #195894] Mon, 25 October 2010 17:50 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I am just wondering if you ever found a solution to this issue?

Regards,
John McDonald.
Re: Multiple artifacts within a single project [message #635233 is a reply to message #635185] Tue, 26 October 2010 02:43 Go to previous messageGo to next message
Eclipse UserFriend
You can use different Build Configurations. One for every artifact.
Re: Multiple artifacts within a single project [message #635555 is a reply to message #195894] Wed, 27 October 2010 06:45 Go to previous messageGo to next message
Eclipse UserFriend
Hi Axel,

Thanks for the reply, I had actually thought that this might be a way to do it, but then assumed that this approach was more of a hack than an intended solution. Or is this the way you are "meant" to achieve this?

Either way can you give me some direction on how to go about setting this up.

For example, if I create a project called test, I will get the usual src directory with the boiler plate hello world program in test.cpp.

If I then add a second source file, say test1.cpp, which also has a main function defined in it this will cause a conflict with the first build configuration.

So I guess my question is, is there a way when creating separate build configs for different artefacts to inform Eclipse which source files should be used for which artefacts.

Apologies if there is an obvious answer to this. Thanks again for your help.

John.
Re: Multiple artifacts within a single project [message #635626 is a reply to message #635555] Wed, 27 October 2010 10:41 Go to previous message
Eclipse UserFriend
In Project Properties->C/C++ General->Paths and Symbols->Source Location you can define different source folders for every build configuration.
I would suggest a folder structure like this.

myproj
->common
->app1
->app2
Previous Topic:Problemas al ejecutar el .exe de eclipse IDE
Next Topic:problems with Windows spawner
Goto Forum:
  


Current Time: Sun May 11 04:42:42 EDT 2025

Powered by FUDForum. Page generated in 0.03608 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top