User forums > Using Code::Blocks
How do I set include directories per "sub-project" ?
ta0:
--- Quote from: stahta01 on June 13, 2016, 03:27:00 pm ---That was the wrong choice!!
--- End quote ---
From your later response I think you misunderstood me.
In my project .cbp file, there is the following XML hierarchy:
<Project>
<Build>
<Target title="Debug">
<Compiler>
<Add directory="c:\myproject\include" />
stahta01:
Hand editing of the CB File is NOT even recommended for experts!
Tim S.
ta0:
--- Quote from: stahta01 on June 13, 2016, 09:10:30 pm ---Hand editing of the CB File is NOT even recommended for experts!
--- End quote ---
Then why keep it in XML?
Anyway, the problem was not with project file typos; the project file works fine afaict.
The problem is that I don't know how to set up several sub projects within a single project file, if that is even possible in C::B.
stahta01:
--- Quote from: ta0 on June 13, 2016, 09:16:44 pm ---
--- Quote from: stahta01 on June 13, 2016, 09:10:30 pm ---Hand editing of the CB File is NOT even recommended for experts!
--- End quote ---
Then why keep it in XML?
Anyway, the problem was not with project file typos; the project file works fine afaict.
The problem is that I don't know how to set up several sub projects within a single project file, if that is even possible in C::B.
--- End quote ---
USE THE GUI AND ADD NEW TARGETS TO THE PROJECT!!!!!
Tim S.
ta0:
--- Quote from: stahta01 on June 13, 2016, 09:43:06 pm ---USE THE GUI AND ADD NEW TARGETS TO THE PROJECT!!!!!
--- End quote ---
Wow, why so angry?
I'm still not sure what you are saying; I should add a different target for every "sub-project"? Ok, that might work, feels like abusing the "target" concept logically though.
I think I would still prefer to do that by (programmatically) editing the .cbp XML data; this project has thousands of source files and the C::B GUI only accepts adding ~5 source files at a time unless they already reside in a perfect directory structure, which is not an option when using multiple development environments.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version