Adds cmake build support.

This commit is contained in:
Tom Hicks
2025-04-09 14:30:09 -07:00
parent a4109d2f49
commit 99f586975c
30 changed files with 2018 additions and 50 deletions

21
build_cmake.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/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 ."