User forums > Using Code::Blocks

How do I set include directories per "sub-project" ?

<< < (3/3)

oBFusCATed:
Several options:
1. make a single project and multiple targets
2. make multiple projects, make sure every project has the same targets, setup dependencies to order them in the build
3. use custom makefile project and your current Makefile

And for adding file use right click -> add recursively editing the cbp file by hand is doable, but not recommended. Another option is to create the projects using scripting, search the wiki for detail about the api.

ta0:
Just to check that it's not a terminology confusion, how do I link the produced targets into a single executable?

I'm beginning to think that "sub-projects" was not the correct word; perhaps I should have said "libraries" except they are not really libraries but only parts of the source tree that are compiled separately in the Makefile (because of different compiler settings).

I can not use the regular makefile, even though I'm building with the same compiler, because then the C::B debugger won't follow the source code when stepping.

oBFusCATed:
Each target (or project) can produce either static or shared library. These libraries can be linked in the final executable.

Navigation

[0] Message Index

[*] Previous page

Go to full version