User forums > General (but related to Code::Blocks)

Depedency between projects issue

<< < (2/2)

cacb:

--- Quote from: stahta01 on September 28, 2014, 05:34:54 pm ---For some projects, it is easier to have the Library be just a separate Target.

--- End quote ---

Really? How do you declare dependencies between targets? Can a project reuse a library defined as a Target  in another project? How about dependencies in those cases?

stahta01:

--- Quote from: cacb on September 28, 2014, 08:19:55 pm ---
--- Quote from: stahta01 on September 28, 2014, 05:34:54 pm ---For some projects, it is easier to have the Library be just a separate Target.

--- End quote ---

Really? How do you declare dependencies between targets? Can a project reuse a library defined as a Target  in another project? How about dependencies in those cases?

--- End quote ---

Have you ever compiled Code::Blocks (CB) using CB projects to do it?

If not, look at the main CB Project it has at least 3 libraries in it; and, it has multiple executable targets that use them.

Edit1: And, most of the CB Contrib projects use the CB DLL created by the CB Core project!

Edit2: I suggest looking up CB "Virtual targets" and external file dependency as things you need to know about CB to do what I suggested.

Tim S.
 

cacb:

--- Quote from: stahta01 on September 28, 2014, 08:34:44 pm ---
--- Quote ---Really? How do you declare dependencies between targets? Can a project reuse a library defined as a Target  in another project? How about dependencies in those cases?

--- End quote ---

Have you ever compiled Code::Blocks (CB) using CB projects to do it?

--- End quote ---

No, on Linux I build C::B from Jens Lody tarballs and on Windows I use MSVC compiler...


--- Quote from: stahta01 on September 28, 2014, 08:34:44 pm ---If not, look at the main CB Project it has at least 3 libraries in it; and, it has multiple executable targets that use them.

Edit1: And, most of the CB Contrib projects use the CB DLL created by the CB Core project!
Edit2: I suggest looking up CB "Virtual targets" and external file dependency as things you need to know about CB to do what I suggested.

--- End quote ---

I may do all this one day, but simple answers to simple questions would indeed be simpler. I know about external file dependency (I have used it), but it isn't very easy IMHO.

Navigation

[0] Message Index

[*] Previous page

Go to full version