Author Topic: Multiple Include and Library Files Template?  (Read 3179 times)

Offline dominover

  • Multiple posting newcomer
  • *
  • Posts: 46
Multiple Include and Library Files Template?
« 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

Online stahta01

  • Lives here!
  • ****
  • Posts: 6678
    • My Best Post
Re: Multiple Include and Library Files Template?
« Reply #1 on: February 13, 2013, 02:05:39 am »
Have you tried "File" -> "Save Project as Template"

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline dominover

  • Multiple posting newcomer
  • *
  • Posts: 46
Re: Multiple Include and Library Files Template?
« Reply #2 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?

Offline dominover

  • Multiple posting newcomer
  • *
  • Posts: 46
Re: Multiple Include and Library Files Template?
« Reply #3 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?
 ???

Offline dominover

  • Multiple posting newcomer
  • *
  • Posts: 46
Re: Multiple Include and Library Files Template?
« Reply #4 on: February 13, 2013, 12:12:14 pm »
Anyone..?  Is it possible?  ???

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12129
    • Travis build status
Re: Multiple Include and Library Files Template?
« Reply #5 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
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline dominover

  • Multiple posting newcomer
  • *
  • Posts: 46
Re: Multiple Include and Library Files Template?
« Reply #6 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.

 ;)