Setup SDL2 for CLion using CMake
Setup SDL2 for CLion using CMake Setting up SDL2 with CMake for CLion can be a hassle but in this tutorial we are going to solve that. First, open your project and set the default toolchain (found in settings) to the bundled mingw that comes with CLion. Create a cmake/modules directory in your project root. Put the following cmake file in the newly created cmake/modules directory Download the SDL2 development library for mingw from https://github....