SFML doesn't provide serialization, so you have to implement it yourself.
To convert between key/mouse names and the corresponding enumerator, you can use the InputNames (http://www.bromeon.ch/libraries/thor/v2.0/doc/_input_names_8hpp.html) feature of the Thor library. Example:
thor::toKeyboardKey("Escape") == sf::Keyboard::Escape
here is the error i get from cmake:
CMake Warning at CMakeLists.txt:86 (find_package):
By not providing "FindSFML.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "SFML", but
CMake did not find one.
Could not find a package configuration file provided by "SFML" (requested
version 2) with any of the following names:
SFMLConfig.cmake
sfml-config.cmake
Add the installation prefix of "SFML" to CMAKE_PREFIX_PATH or set
"SFML_DIR" to a directory containing one of the above files. If "SFML"
provides a separate development package or SDK, be sure it has been
installed.
CMake Error at CMakeLists.txt:92 (message):
SFML directory not found. Set SFMLDIR to SFML's top-level path (containing
"include" and "lib" directories).
Configuring incomplete, errors occurred!
as far as sfml goes i used cmake and then i opened the project file "ALL_BUILD.vcxproj" that cmake created and built it. the include folder that was created in the process wasn't in the sfml main folder but i pasted it there afterwards.
//EDIT:
sorry if i come across as stupid :S i never used cmake bevore
even if I compiled it with the install project file it won't make a difference
now i copied the findsfml.cmake into the cmake module folder but it still doesn't go much further
Could NOT find SFML (missing: SFML_AUDIO_LIBRARY SFML_GRAPHICS_LIBRARY SFML_WINDOW_LIBRARY SFML_SYSTEM_LIBRARY)
CMake Error at CMakeLists.txt:92 (message):
SFML directory not found. Set SFMLDIR to SFML's top-level path (containing
"include" and "lib" directories).