/SDL-CMake-Template

A template for setting up a basic SDL2 project with sdl_image, sdl_mixer, etc

Primary LanguageCMakeGNU General Public License v2.0GPL-2.0

Overview

Just enable the required features from the CMakeLists (@line 105) and it'll add all the required submodules and linker tags and even copy the DLLs to the binary directory on windows!

Now works in Release and RelWithDebInfo modes!

Requirements (for compiling)

  • CMake
  • x86 or x64 compiler (only tested with MSVC and MinGW on windows, and with GCC for UNIX)

Profiling

You can use https://ui.perfetto.dev/ to view the profiling data. The data is stored in profiling/ and is named perfetto_trace.json.