Simple setup

This commit is contained in:
Senad Uka
2022-11-25 16:41:48 +01:00
parent 6acf50ae4f
commit 8f158db4a9
4 changed files with 23 additions and 23 deletions

View File

@@ -44,7 +44,7 @@ sudo apt install codeblocks
```sh
# Create a folder for the Code::Blocks project
cd basic-c-sdl-game
cd lettergame
mkdir -p build/codeblocks
cd build/codeblocks
@@ -53,7 +53,7 @@ cmake ../.. -G "CodeBlocks - Unix Makefiles"
```
*Open the project:*<br>
Run Code::Blocks, and open the project in `basic-c-sdl-game/build/codeblocks`.<br>
Run Code::Blocks, and open the project in `lettergame/build/codeblocks`.<br>
Finally, build and run the project.
@@ -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-game
mkdir ../eclipse-basic-c-sdl-game
cd ../eclipse-basic-c-sdl-game
cd lettergame
mkdir ../eclipse-lettergame
cd ../eclipse-lettergame
# Generate an Eclipse project
cmake ../basic-c-sdl-game -G "Eclipse CDT4 - Unix Makefiles"
cmake ../lettergame -G "Eclipse CDT4 - Unix Makefiles"
```
*Open the project:*<br>
Run Eclipse, and open the project in `eclipse-basic-c-sdl-game`.<br>
Run Eclipse, and open the project in `eclipse-lettergame`.<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.