Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: dominover on February 12, 2013, 08:22:09 am

Title: Multiple Include and Library Files Template?
Post by: dominover on February 12, 2013, 08:22:09 am
When using some open source software it has multiple library files and include files due to multiple dependencies.  Do I have to add these in the 'include' and 'Linker' Build Options every time I build a new project or is there a method I can use to have all of these includes and library files incorporated in a simpler step?   I know how to add a global variable but it is limited what I can do with this?  Is there another method?

Maybe there is but I'm not sure what to call it.

Thanks
Title: Re: Multiple Include and Library Files Template?
Post by: stahta01 on February 13, 2013, 02:05:39 am
Have you tried "File" -> "Save Project as Template"

Tim S.
Title: Re: Multiple Include and Library Files Template?
Post by: dominover on February 13, 2013, 04:19:51 am
Nice one.. Thats exactly what I needed.
I don't suppose you know how to incorporate that into an existing project would you.  Do I have to start a new project and incorporate it that way only?
Title: Re: Multiple Include and Library Files Template?
Post by: dominover on February 13, 2013, 09:46:51 am
Alright... does anyone know how to add a saved template includes and linker directories to
an existing project? 

I can start one from scratch but I'm not able to to as described above?
 ???
Title: Re: Multiple Include and Library Files Template?
Post by: dominover on February 13, 2013, 12:12:14 pm
Anyone..?  Is it possible?  ???
Title: Re: Multiple Include and Library Files Template?
Post by: oBFusCATed on February 13, 2013, 12:19:48 pm
You can use scripting. Investigate the wizard template scripts about hints how to do it.
Also look here for some docs: http://wiki.codeblocks.org/index.php?title=Scripting_commands
Title: Re: Multiple Include and Library Files Template?
Post by: dominover on February 14, 2013, 09:51:28 am
Thanks for that.  (Both)
I thought there may have been a built in method of doing this but it's not a problem.  I'll just have to remember to start using an existing template until I work out how  use scripting for this purpose.

 ;)