I tried with the sfml media demo code (
https://www.sfml-dev.org/documentation/2.4.2/). I can build and run with CLion on mac os x. However, I am having the following linking error on windows 10 with CLion. I wonder whether I need extra setup on windows 10. By the way, I don't have any D: drive. I installed SFML to C:\SFML.
C:/SFML/lib/libsfml-window-s-d.a(Window.cpp.obj): In function `ZN2sf6WindowC2Ev':
D:/sfml-release/_Sources/SFML/src/SFML/Window/Window.cpp:48: undefined reference to `sf::Clock::Clock()'
D:/sfml-release/_Sources/SFML/src/SFML/Window/Window.cpp:48: undefined reference to `sf::Time::Zero'
D:/sfml-release/_Sources/SFML/src/SFML/Window/Window.cpp:48: undefined reference to `sf::Time::Zero'
C:/SFML/lib/libsfml-window-s-d.a(Window.cpp.obj): In function `ZN2sf6WindowC2ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE':
D:/sfml-release/_Sources/SFML/src/SFML/Window/Window.cpp:59: undefined reference to `sf::Clock::Clock()'
....