1
0
mirror of https://github.com/meekrosoft/fff synced 2026-01-22 16:05:59 +01:00
Files
fff/buildandtest
Jakub Dudarewicz 5111c61e1e Add GTest with FetchContent (#120)
* Add missing GTest linking
* Add unit testing switch
* Rename UNIT_TESTING to be fff-specific
* Add fff.h generation toggle
* Use options instead of variables for disabling build elements
* Add interface library for when the header is not regenerated
* Update build script and README
2023-05-22 19:31:38 +10:00

16 lines
276 B
Bash
Executable File

#!/bin/bash
set -e
# Clear the environment
rm -fr build fff.h
mkdir build
# Configure the build
cmake -B build -DFFF_GENERATE=ON -DFFF_UNIT_TESTING=ON || exit -1
# Build all targets
cmake --build build || exit -1
# Run all tests
ctest --test-dir build --output-on-failure