mirror of
https://github.com/lov3b/Pong.git
synced 2025-01-18 20:50:12 +01:00
readme
This commit is contained in:
parent
6278fb13a1
commit
d5545519ae
38
README.md
38
README.md
@ -1,5 +1,39 @@
|
|||||||
# Pong
|
# Pong
|
||||||
|
|
||||||
A pong implementation in C++. You'll need cmake make, sdl2 sdl2-gfx and sdl2-ttf to compile.
|
A pong implementation in C++.
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
You'll need cmake make, sdl2 sdl2-gfx and sdl2-ttf to compile. Under debian-based systems that can be installed using
|
||||||
|
the following command.
|
||||||
|
|
||||||
|
```
|
||||||
|
apt install cmake build-essential libsdl2-dev libsdl2-gfx-dev libsdl2-ttf-dev
|
||||||
|
```
|
||||||
|
|
||||||
|
DejaVuSans is also expected to be in the same place as it is under compile time. You will need to make sure to compile
|
||||||
|
for the same distro that you're using, and also have the font installed. The package under debian is
|
||||||
|
called `fonts-dejavu-core`
|
||||||
|
|
||||||
|
## Compiling
|
||||||
|
|
||||||
|
To compile simply use the following.
|
||||||
|
|
||||||
|
```
|
||||||
|
cmake -B build
|
||||||
|
make -C build
|
||||||
|
```
|
||||||
|
|
||||||
|
If you'd like to enable optimizations you may pass `-DENABLE_OPTIMIZATIONS=ON` to cmake. You'll end up with the
|
||||||
|
following then.
|
||||||
|
|
||||||
|
```
|
||||||
|
cmake -DENABLE_OPTIMIZATIONS=ON -B build
|
||||||
|
make -C build
|
||||||
|
```
|
||||||
|
|
||||||
|
You'll end up with the following command `cmake -DENABLE_OPTIMIZATIONS=ON`.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
To enable compiler optimizations pass `-DENABLE_OPTIMIZATIONS=ON` to cmake. You'll end up with the following command `cmake -DENABLE_OPTIMIZATIONS=ON`.
|
|
Loading…
x
Reference in New Issue
Block a user