Skip to content

Commit

Permalink
Update the project name and description
Browse files Browse the repository at this point in the history
  • Loading branch information
aminosbh committed Nov 20, 2018
1 parent 212cfd8 commit 5076f92
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#

# Define the project name
project(basic-c-sdl-project)
project(basic-c-sdl-project-tunisia-flag)

# Set the cmake minimum version to 3.5.1
cmake_minimum_required(VERSION 3.5.1)
Expand Down
14 changes: 7 additions & 7 deletions IDE_USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ sudo apt install codeblocks

```sh
# Create a folder for the Code::Blocks project
cd basic-c-sdl-project
cd basic-c-sdl-project-tunisia-flag
mkdir -p build/codeblocks
cd build/codeblocks

Expand All @@ -53,7 +53,7 @@ cmake ../.. -G "CodeBlocks - Unix Makefiles"
```

*Open the project:*<br>
Run Code::Blocks, and open the project in `basic-c-sdl-project/build/codeblocks`.<br>
Run Code::Blocks, and open the project in `basic-c-sdl-project-tunisia-flag/build/codeblocks`.<br>
Finally, build and run the project.


Expand All @@ -72,15 +72,15 @@ Offline package: https://www.eclipse.org/downloads/packages

```sh
# Create a folder for the Eclipse project outside this project
cd basic-c-sdl-project
mkdir ../eclipse-basic-c-sdl-project
cd ../eclipse-basic-c-sdl-project
cd basic-c-sdl-project-tunisia-flag
mkdir ../eclipse-basic-c-sdl-project-tunisia-flag
cd ../eclipse-basic-c-sdl-project-tunisia-flag

# Generate an Eclipse project
cmake ../basic-c-sdl-project -G "Eclipse CDT4 - Unix Makefiles"
cmake ../basic-c-sdl-project-tunisia-flag -G "Eclipse CDT4 - Unix Makefiles"
```
*Open the project:*<br>
Run Eclipse, and open the project in `eclipse-basic-c-sdl-project`.<br>
Run Eclipse, and open the project in `eclipse-basic-c-sdl-project-tunisia-flag`.<br>
Create a new run configuration: Go to `Run` &gt; `Run configurations` &gt;
`C\C++ Application` and specify the C/C++ Application using `Search Project...`<br>
Finally, build and run the project.
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Basic C SDL project
# Basic C SDL project : Tunisia flag

This project is a basic C [SDL][] project that uses [CMake][] as a build system.
It draws the flag of [Tunisia][] using basic graphics primitives.

## Dependencies

Expand Down Expand Up @@ -29,8 +30,8 @@ sudo apt install libsdl2-image-dev libsdl2-ttf-dev libsdl2-gfx-dev

```sh
# Clone this repo
git clone https://gitlab.com/aminosbh/basic-c-sdl-project.git
cd basic-c-sdl-project
git clone https://gitlab.com/aminosbh/basic-c-sdl-project-tunisia-flag.git
cd basic-c-sdl-project-tunisia-flag

# Create a build folder
mkdir build
Expand All @@ -41,7 +42,7 @@ cmake ..
make

# Run
./basic-c-sdl-project
./basic-c-sdl-project-tunisia-flag
```

***Note:*** To use SDL2_image, SDL2_ttf or SDL2_gfx, you should uncomment
Expand All @@ -66,3 +67,4 @@ This project is distributed under the terms of the MIT license
[SDL2_image]: https://www.libsdl.org/projects/SDL_image
[SDL2_ttf]: https://www.libsdl.org/projects/SDL_ttf
[SDL2_gfx]: http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx
[Tunisia]: https://en.wikipedia.org/wiki/Tunisia
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ int main(int argc, char* args[])
}

// Create window
SDL_Window *window = SDL_CreateWindow("Basic C SDL project",
SDL_Window *window = SDL_CreateWindow("Basic C SDL project: Tunisia Flag",
SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED,
SCREEN_WIDTH, SCREEN_HEIGHT,
Expand Down

0 comments on commit 5076f92

Please sign in to comment.