1
0
mirror of https://github.com/meekrosoft/fff synced 2026-01-23 00:15:59 +01:00

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
This commit is contained in:
Jakub Dudarewicz
2023-05-22 11:31:38 +02:00
committed by GitHub
parent a9cb716818
commit 5111c61e1e
10 changed files with 49 additions and 28717 deletions

View File

@@ -35,7 +35,7 @@ To run all the tests and sample apps, simply call `$ buildandtest`. This script
will call down into CMake with the following:
```shell
cmake -GNinja -B build
cmake -B build -DFFF_GENERATE=ON -DFFF_UNIT_TESTING=ON
cmake --build build
ctest --test-dir build --output-on-failure
```