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:
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user