Thanks for your reply, I got a bit further. CMake finds all dependencies now. However, I get compiler errors now. These are the steps I performed.
1. Download a snapshot of SFML from Github and extract it.
2. Started CMake GUI and selected the exctracted folder as both source and destination.
3. Clicked "Configure" and selected "MinGW Makefiles".
4. Unchecked "BUILD_SHARED_LIBS"
Set "CMAKE_INSTALL_PREFIX" to "D:/lib/SFML"
Set "GLEW_INCLUDE_PATH" to "D:/lib/glew-1.11.0/include"
Set "GLEW_LIBRARY" to "D:/lib/glew-1.11.0/lib/libglew32.a"
Checked "SFML_USE_STATIC_STD_LIBS"
5. Clicked "Configure" again, and then "Generate".
6. Ran "mingw32-make install" inside the extracted folder.
However, I get these compiler errors with the
CMakeLists.txt from the tutorial and the
FindSFML.cmake from the official repository. I took the
example code from the compilation tutorial.
"D:\program\JetBrains\CLion 138.1965.18\bin\cmake\bin\cmake.exe" --build C:\Users\main\.clion10\system\cmake\generated\dff727e\dff727e\Debug --target test -- -j 6
Linking CXX executable test.exe
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x124): undefined reference to `sf::Clock::Clock()'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x129): undefined reference to `sf::Time::Zero'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x12f): undefined reference to `sf::Time::Zero'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x461): undefined reference to `sf::err()'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x54c): undefined reference to `sf::Time::Zero'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x552): undefined reference to `sf::Time::Zero'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x57e): undefined reference to `sf::seconds(float)'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x5f4): undefined reference to `sf::err()'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x6f6): undefined reference to `sf::Time::Zero'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x6fc): undefined reference to `sf::Time::Zero'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x715): undefined reference to `sf::Clock::restart()'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x75b): undefined reference to `sf::Clock::Clock()'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x760): undefined reference to `sf::Time::Zero'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x769): undefined reference to `sf::Time::Zero'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x7d4): undefined reference to `sf::err()'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x8e1): undefined reference to `sf::err()'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x9b4): undefined reference to `sf::Clock::Clock()'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x9bc): undefined reference to `sf::Time::Zero'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x9c2): undefined reference to `sf::Time::Zero'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xa9e): undefined reference to `sf::Time::Zero'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xaa4): undefined reference to `sf::Time::Zero'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xabe): undefined reference to `sf::operator!=(sf::Time, sf::Time)'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xacc): undefined reference to `sf::Clock::getElapsedTime() const'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xae6): undefined reference to `sf::operator-(sf::Time, sf::Time)'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xaf2): undefined reference to `sf::sleep(sf::Time)'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xaf9): undefined reference to `sf::Clock::restart()'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xb06): undefined reference to `sf::err()'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xc56): undefined reference to `sf::Time::Zero'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xc5c): undefined reference to `sf::Time::Zero'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xc75): undefined reference to `sf::Clock::restart()'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xd82): undefined reference to `sf::err()'
D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xe94): undefined reference to `sf::err()'
d:/program/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: D:\lib\SFML\lib\libsfml-window-s.a(Window.cpp.obj): bad reloc address 0x17 in section `.text.unlikely'
collect2.exe: error: ld returned 1 exit status
CMakeFiles\test.dir\build.make:96: recipe for target 'test.exe' failed
mingw32-make.exe[3]: *** [test.exe] Error 1
CMakeFiles\Makefile2:59: recipe for target 'CMakeFiles/test.dir/all' failed
mingw32-make.exe[2]: *** [CMakeFiles/test.dir/all] Error 2
CMakeFiles\Makefile2:71: recipe for target 'CMakeFiles/test.dir/rule' failed
mingw32-make.exe[1]: *** [CMakeFiles/test.dir/rule] Error 2
Makefile:105: recipe for target 'test' failed
mingw32-make.exe: *** [test] Error 2