Files
old-core/README.md
2018-10-28 18:46:41 +01:00

1.3 KiB

Basic C SDL project

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

Dependencies

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

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

Optional packages:

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

Build instructions

# Clone this repo
git clone git@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 or SDL2_gfx, you should uncomment some instructions in the CMakeLists.txt file and re-execute cmake .. and make

License

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