I am fairly new to CLion and this is also my first time with a full-fledged IDE, so I have very little experience. I am currently learning SDL2 and therefore need to set it up. I have absolutely no clue where to start from. I have downloaded the .dll of SDL2. Where do I place it? How do I edit the CMakeList? Please help.
EDIT - Turns out, even my download was wrong. I have CLion with latest mingw but I do not know which of these to download SDL2-devel-2.0.3-VC.zip (Visual C++ 32/64-bit) SDL2-devel-2.0.3-mingw.tar.gz (MinGW 32/64-bit) since Clion also uses CMake (like visual c++). Please help.
Hi Atul.
CLion uses CMake as a build tool and a project model. So you need to configure CMakeLists.txt for SDL2 library using.
Please try to use some examples of CmakeLists from these articles:
http://stackoverflow.com/questions/23850472/how-to-use-sdl2-and-sdl-image-with-cmake
https://brendanwhitfield.wordpress.com/2015/02/26/using-cmake-with-sdl2/
I am fairly new to CLion and this is also my first time with a full-fledged IDE, so I have very little experience. I am currently learning SDL2 and therefore need to set it up. I have absolutely no clue where to start from. I have downloaded the .dll of SDL2. Where do I place it? How do I edit the CMakeList? Please help.
EDIT - Turns out, even my download was wrong. I have CLion with latest mingw but I do not know which of these to download SDL2-devel-2.0.3-VC.zip (Visual C++ 32/64-bit)
SDL2-devel-2.0.3-mingw.tar.gz (MinGW 32/64-bit) since Clion also uses CMake (like visual c++). Please help.
Hi Atul.
You need to download the second distributive.
Also please use FindSDL2.cmake from the link. Find out more information in the readme file.