News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Custom source directories

Started by yakumoklesk, December 17, 2006, 03:57:17 PM

Previous topic - Next topic

yakumoklesk

I've been loking inside scripts for projects template, more specifically for QT4 template, in order to find references to the string "Source", that is where all source files are going to be, and that it's mapped to the project root.

I don't know if there is a way of changing that mapping and tell codeblocks that the source folder is named "src" and is located in project_root/src instead of project root. I want my project to hold a structure that works well for me and is similar to linux projects, something like

project_root/
                 src
                 bin
                 obj
                 res

etc.

Is there a way of configuring this? I've been loking through project properties and have found nothing. I have tried to add "src" folder but the project tree shows "src" as a chlid of "Source" node.

Thanks in advance.


MortenMacFly

Right-click on you project, select "Project tree" and play around with "Categorize by file types" and "Display folders as on disk" until the look matches to what you want.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

yakumoklesk

Thank you. I now feel like a real dumb.  :(

I could not imagine it was so much at hand.