Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: holland11 on February 09, 2018, 08:40:32 am

Title: Possible to save a set of Build Options to be easily applied to new projects?
Post by: holland11 on February 09, 2018, 08:40:32 am
I'm currently learning the SFML library and find it annoying to have to set my build options again every time that I start a new project. As a programmer, I am always looking for an easier way to do something and it seems like it wouldn't be that difficult to be able to save build options to be used as presets. Or even to become the new default build options.

Is this a thing?
Title: Re: Possible to save a set of Build Options to be easily applied to new projects?
Post by: ollydbg on February 09, 2018, 09:02:48 am
There are several solutions:
1, Wizard scripts - CodeBlocks (http://wiki.codeblocks.org/index.php/Wizard_scripts), there are already many wizards or templates, and you can create new one or modify the existing ones

2, the project file ".cbp" file contains all the settings(such as build options), so when you want to create a new project, just copy the ".cbp" file, and change the source files.
Title: Re: Possible to save a set of Build Options to be easily applied to new projects?
Post by: holland11 on February 09, 2018, 04:40:18 pm
Makes sense. Thanks. Also tried File > Save Project As Template, then File > New > From Template. This seems to have done a simple copy of the .cbp and all source files into another directory of my choosing. Exactly what I was looking for.