From d1c1344d548d2461435d3ae3cd17a46ec19ba221 Mon Sep 17 00:00:00 2001 From: "Amine B. Hassouna" Date: Sun, 28 Oct 2018 15:09:31 +0100 Subject: [PATCH] Add build instructions --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index a4c2299..8918f06 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,28 @@ sudo apt install git-core build-essential pkg-config cmake cmake-data libsdl2-de sudo apt install libsdl2-image-dev libsdl2-ttf-dev libsdl2-gfx-dev ``` +## 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` + ## License This project is distributed under the terms of the MIT license