I'm not an expert in any of this, but I got an example working.
Using:
CLion 2016.3.2, with included cmake
mingw64
SFML 2.4 for mingw64, installed to C:/SFML
CMakeLists.txt
https://pastebin.com/PxhBfWmcI had to add line 16 and change link 22 from TARGET to my project name.
Looking at your project setup, it looks like the SFML dll files are in the root of your project directory. The dlls should be in the cmake-build-debug directory where the executable (Adventure.exe) is placed after building the project.
main.cpp
#include "config.h"
#include <iostream>
#include <SFML/Window.hpp>
int main()
{
sf::Window window(sf::VideoMode(800, 600), "My window");
// run the program as long as the window is open
while (window.isOpen())
{
// check all the window's events that were triggered since the last iteration of the loop
sf::Event event;
while (window.pollEvent(event))
{
// "close requested" event: we close the window
if (event.type == sf::Event::Closed)
window.close();
}
}
return 0;
}