simsamples
I recommend reading the documentation: [https://wiki.libsdl.org/SDL_CreateWindowAndRenderer]
Sample programs - SDL and simple simulations
Compilation
mkdir build
cd build
cmake ../
Alternative compilation procedure
This is example for "hello world"
cmake -B 01_hello_sdl_build -s 01_hello_sdl
cmake --build 01_hello_sdl_build