SFML community forums

Help => General => Topic started by: shayan-sa on February 08, 2016, 01:31:46 pm

Title: saving configuration for the libraries
Post by: shayan-sa on February 08, 2016, 01:31:46 pm
I have managed to setup the sfml , and it is now working , I am using visual studio 2013, the question is , is there a way to get rid of including the library , each time I open a new project?? as I am using training samples , I may put each of them in a new project , so doing all the steps of set up again , is very annoying ! is there any way to save configuration a project and export it to another ? is there a short way?
Title: Re: saving configuration for the libraries
Post by: Satus on February 08, 2016, 01:36:23 pm
Create a template project and create a copy every time you want to start a new project.
Title: Re: saving configuration for the libraries
Post by: Laurent on February 08, 2016, 02:19:45 pm
It takes no more than 30 seconds to add the SFML include path, library path and libraries to your project. You'll spend much more time developing the project itself, even if it's just tutorials. And why don't you reuse the same project anyway?
Title: Re: saving configuration for the libraries
Post by: hobby on February 08, 2016, 09:23:58 pm
You can create a property sheet (.props) file with the shared settings in the VS IDE, then add it to individual projects using the Property Manager.
From MSDN (https://msdn.microsoft.com/en-us/library/669zx6zc(v=vs.120).aspx), section "Sharing reusable property configurations":
Quote
If you have a common, frequently used set of properties that you want to apply to multiple projects, you can use Property Manager to capture them in a reusable property sheet file, which by convention has a .props file name extension. You can apply the sheet (or sheets) to new projects so that you don't have to set its properties from scratch.
[...]
Title: Re: saving configuration for the libraries
Post by: Hapax on February 09, 2016, 02:37:00 am
property sheet (.props) file
I've taken to using this method a lot in the previous few months.