A barebones OS and IDE agnostic C++23 SDL3 CMake project to start your dream software project from.
Download and build a local copy of SDL3 (installation instructions) and SDL3_Mixer (The've no installation instructions, but its near identical to SDL3s)
Make a /lib
and /include/SDL3
and /include/SDL3_Mixer
directories in the root of this project.
I'm not a fan of downloading prebuilt libraries or installing them globally, so I've included the steps to build the dependencies and include them in the project.
Copy the include/SDL3
directory from your local SDL3 repository into /include
Copy the generated *.dylib
files from the compiled SDL library into /lib
. Including the versioned ones.
Download and build SDL3 on your platform. Move the .lib
file into /lib
and the .dll
file into the same
directory as your executable.
Copy the headers from the SDL3_Mixer repository into /include/SDL3_Mixer
.
I've called the directory SDL3_Mixer
intentionally.
You'll need to build the library yourself though.
Copy the generated *.dylib
files from the compiled SDL library into /lib
. Including the versioned ones.
Download and build SDL_Mixer on your platform. Move the .lib
file into /lib
and the .dll
file into the same
directory as your executable.
run cmake .
to generate the Visual Studio project
Open the directory as a Clion project. You'll be prompted to create your Build Configuration upon opening.
If you get an error like this, It probably means you didn't copy the *.dll
files into the same directory as the
executable.