Author Topic: Custom source directories  (Read 3067 times)

Offline yakumoklesk

  • Multiple posting newcomer
  • *
  • Posts: 34
Custom source directories
« on: December 17, 2006, 03:57:17 pm »
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.


Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Custom source directories
« Reply #1 on: December 17, 2006, 04:27:41 pm »
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline yakumoklesk

  • Multiple posting newcomer
  • *
  • Posts: 34
Re: Custom source directories
« Reply #2 on: December 17, 2006, 04:40:17 pm »
Thank you. I now feel like a real dumb.  :(

I could not imagine it was so much at hand.