SFML community forums
Help => General => Topic started 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?
-
Create a template project and create a copy every time you want to start a new project.
-
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?
-
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":
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.
[...]
-
property sheet (.props) file
I've taken to using this method a lot in the previous few months.