2019-02-04 00:06:04 +01:00
2019-02-03 23:41:46 +01:00
2018-12-02 11:39:04 +01:00
2019-02-03 23:41:46 +01:00
2019-02-04 00:06:04 +01:00
2018-11-20 09:24:04 +01:00
2018-11-08 21:36:47 +01:00
2019-02-04 00:06:04 +01:00

Basic C SDL2 project

This project is a basic C SDL2 project that uses CMake as a build system.

Dependencies

On Debian/Ubuntu based distributions, use the following command:

sudo apt install git build-essential pkg-config cmake cmake-data libsdl2-dev

Optional packages:

sudo apt install libsdl2-image-dev libsdl2-ttf-dev libsdl2-net-dev libsdl2-mixer-dev libsdl2-gfx-dev

Build instructions

# Clone this repo
git clone --recurse-submodules https://gitlab.com/aminosbh/basic-c-sdl-project.git
cd basic-c-sdl-project

# Create a build folder
mkdir build
cd build

# Build
cmake ..
make

# Run
./basic-c-sdl-project

Note: To use SDL2_image, SDL2_ttf, SDL2_net, SDL2_mixer or SDL2_gfx, you should uncomment some instructions in the CMakeLists.txt file and re-execute the make command.

Open the project with an IDE under Linux

See IDE_USAGE.md for details.

License

Author: Amine B. Hassouna @aminosbh

This project is distributed under the terms of the MIT license <LICENSE>.

Description
No description provided
Readme MIT 96 KiB
Languages
CMake 68.5%
C 26.8%
Shell 4.7%