Files
TinyTest/build_cmake.sh
2025-04-09 19:33:49 -07:00

21 lines
381 B
Bash
Executable File

#!/bin/bash
# Helper script to build TinyTest with CMake
# Exit on error
set -e
# Create build directory if it doesn't exist
mkdir -p build
cd build
# Configure with CMake
echo "Configuring with CMake..."
cmake .. $@
# Build
echo "Building..."
cmake --build .
echo "Build complete!"
echo "To run tests: cd build && ctest"
echo "To install: cd build && sudo cmake --install ."