praca_magisterska/code/cpp/run.sh

16 lines
426 B
Bash
Raw Permalink Normal View History

2026-03-08 21:29:46 +01:00
#!/bin/bash
# Build and run the C++ shortest-path visualizer (requires raylib)
set -e
cd "$(dirname "$0")"
if ! command -v pkg-config &>/dev/null || ! pkg-config --exists raylib; then
echo "raylib not found. Install with: sudo pacman -S raylib"
exit 1
fi
echo "Compiling..."
g++ -std=c++17 -O2 -o visualizer algorithms.cpp visualizer.cpp \
$(pkg-config --cflags --libs raylib) -lm
echo "Running..."
./visualizer