I updated this tutorial for SFML version 2. I updated the example code that was used, changed CMake so it looks for version 2.X, and added some notes about specifying the library and include directories if CMake cannot find them (if they're not installed to a standard place for example). I think I tested almost everything but if you find something, please correct it.