From b25d006b9e7797b24971a91cf74d3bfbbcffb13b Mon Sep 17 00:00:00 2001 From: Jan Mrna Date: Thu, 16 Oct 2025 10:55:22 +0200 Subject: [PATCH] README: updated build instructions for linux --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e8b8ba3..7bf1b17 100644 --- a/README.md +++ b/README.md @@ -62,11 +62,18 @@ pacman -S glew sdl3 sdl3_image #### Build ```bash -cmake +cmake -B build 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.