Hi all,
sorry for my bad english :lol:.
I want to share with all this guide for setting SFML proprieties for all new VS2010 projects. Hope it helps some ppl, if not Leaurent can destroy this thread :lol:
PS: Yes, i used paint to take pics :lol:
(I used to be photoshop user, then i took a ban in the program).
Let's start!
Open a new project in VS2010 (Console application in this example).
Go to View->Property Manager
1Right click on your project -> Add New Project Property Sheet...
2Choose a Name and Location where you want store this personal setup.
SFML and Desktop in my example.
3Click Add and you should have something like this:
4Now right click on one of 2 SFML -> Properties
5You should see SFML Property Page!
Go to VC++ Directories and select Include Directories, then click on the right -> Edit, we are adding our SFML includes:
6Now in Include Directories double click on empty space and you shoud see something like this:
7Click on suspension points and find your SFML's include folder, Program Files (x86)\SFML\include in my example.
8Add that folder and then click OK
9Repeat this step for Library Directories to add SFML's lib folder
10You should have something like this after these steps:
11Now go to C/C++ section and in General->Additional Include Directories do the same as Include Directories of VC++ Directories section:
12Go in Preprocessor and add in Preprocessor Definitions SFML_DYNAMIC or SFML_STATIC, i choose SFML_DYNAMIC in this example:
13Now go in Linker section -> Input and add in Additional Dependecies all libs like in picture:
14If you want, you can personalize your setting. In this example i added this string in Pre-Build Event so when i build my project it will copy all .dll in the outdir folder.
15Now if all is went well we can build with success a stupid SFML program like this:
16As you can see, it copies all dll in my out dir!
Now let's test this setup for a new project.
Start a new project and try to include a SFML .hpp. You cannot do it of course:
17We have to use our personal property sheet.
Let's add it. Go to Property Manager, right click on your proyect -> Add Ecisting Property Sheet...
18Search your .props file and open it:
19You should see your sheet in Property Manager as this:
20Let's write the stupid SFML program:
2122Build succeeded! Yeah.
thx for reading