README: updated build instructions for linux

This commit is contained in:
Jan Mrna
2025-10-16 10:55:22 +02:00
parent e117e85e7f
commit b25d006b9e

View File

@@ -62,11 +62,18 @@ pacman -S glew sdl3 sdl3_image
#### Build #### Build
```bash ```bash
cmake cmake -B build
cmake --build build -j 16 cmake --build build -j 16
``` ```
Optionally you can also build the compilation database (TODO) Optionally you can also use options:
* `-DCMAKE_EXPORT_COMPILE_COMMANDS=ON` to enable compile database export
* `-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++` to use clang
```
cmake -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=O -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
``````
Run the `pathfinding` binary in the `build` folder. Run the `pathfinding` binary in the `build` folder.