mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2025-09-03 23:20:14 +02:00
specify debian and simplify cmake
This commit is contained in:
parent
25c74ce581
commit
8fd9f41dfb
1 changed files with 8 additions and 2 deletions
10
README.md
10
README.md
|
@ -63,7 +63,7 @@ Download and unpack devel packages for `SDL2` and `SDL2_mixer`.\
|
||||||
Set paths to them in `CMakeLists.txt`, see suggested placement in `/Libs`.\
|
Set paths to them in `CMakeLists.txt`, see suggested placement in `/Libs`.\
|
||||||
Compile with Visual Studio; tested with 2019.
|
Compile with Visual Studio; tested with 2019.
|
||||||
|
|
||||||
### On Linux
|
### On Debian/Ubuntu
|
||||||
|
|
||||||
Install devel packages for `SDL2` and `SDL2_mixer`.\
|
Install devel packages for `SDL2` and `SDL2_mixer`.\
|
||||||
Compile with CMake; tested with GCC 10, Clang 11.\
|
Compile with CMake; tested with GCC 10, Clang 11.\
|
||||||
|
@ -75,9 +75,15 @@ sudo apt install libsdl2-dev libsdl2-mixer-dev
|
||||||
|
|
||||||
cd ../path/to/SpaceCadetPinball
|
cd ../path/to/SpaceCadetPinball
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
|
cmake ..
|
||||||
|
make -j$(nproc) # Build with all available CPU cores
|
||||||
|
```
|
||||||
|
|
||||||
|
Use one of following commands instead to specify the compilers explicitly:
|
||||||
|
|
||||||
|
```sh
|
||||||
cmake .. -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ # gcc
|
cmake .. -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ # gcc
|
||||||
cmake .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ # clang
|
cmake .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ # clang
|
||||||
make -j$(nproc) # Build with all available CPU cores
|
|
||||||
```
|
```
|
||||||
|
|
||||||
[](https://repology.org/project/spacecadetpinball/versions)
|
[](https://repology.org/project/spacecadetpinball/versions)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue