#!/bin/bash
set -e

echo "Compiling Qt OpenSource Application..."

# Navigate to the script's directory
cd "$(dirname "$0")"

# Create build directory if it doesn't exist
mkdir -p build
cd build

# Run CMake and make
cmake ..
make -j$(nproc)

echo "Compilation complete. Executable is at $(pwd)/qt_pehredaar"
