You are right, this is the closest approximation. I guess I was just a bit ticked off because it was something I expected to be possible, yet instead of being told it wasn't really possible, I got an answer in the form of "this is the way to do that", while it was really only an approximation of what I was trying to do. The problem was in both my assumption that it was possible and the lack of clarity on my description. I'm sorry.
What I really want is for the "source root directory" not to necessarily be the same direction as the one your cbp file is in. Currently the folder in which your cbp file is, is your "source root directory" as well as (under default settings) parent of the bin directory etc.
Now that I think of it, there will only be a few changes necessary for this change:
- before executing the compiler, a cd to the "source root directory"
- the project panel should display things with the source root directory as its root
- the autocompletion should be aware of the include path
I'll look into making a feature request later. A patch would indeed be better, but seeing as I currently don't even have a home-compiled Code::Blocks and that I am in a rather large project, that isn't really a possibility for me right now.