#!/bin/bash set -e echo "Starting project setup..." if [ ! -d "build" ]; then mkdir build echo "Created build directory." fi cd build cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON echo "CMake configuration complete." cd .. ln -sf build/compile_commands.json compile_commands.json