Files
old-core/README.md

55 lines
985 B
Markdown
Raw Normal View History

2018-10-28 15:06:27 +01:00
# Basic C SDL project
This project is a basic C SDL project that uses CMake as a build system.
2018-10-28 15:08:50 +01:00
## Dependencies
- Git
- C Compiler (gcc, ...)
- CMake
- SDL2 library
**On Debian/Ubuntu based distributions, use the following command:**
```sh
sudo apt install git-core build-essential pkg-config cmake cmake-data libsdl2-dev
```
**Optional packages:**
- SDL2_image library
- SDL2_ttf library
- SDL2_gfx library
```sh
sudo apt install libsdl2-image-dev libsdl2-ttf-dev libsdl2-gfx-dev
```
2018-10-28 15:09:31 +01:00
## Build instructions
```sh
# 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`
2018-10-28 15:06:27 +01:00
## License
This project is distributed under the terms of the MIT license
[<LICENSE>](LICENSE).
2018-10-27 21:31:08 +00:00