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....

December 29, 2021 · 2 min

Setup SDL2_image for CLion using CMake

Setup SDL2_image for CLION using CMAKE Guide for setting up SDL2_image for CLION using CMAKE Since setting up SDL2_IMAGE is very similar to setting up SDL2, most of this guide will be very similar to the setup SDL2 for CLION guide. 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_image development library for mingw from https://github....

December 1, 2021 · 2 min