TESSEorg / ttg

TTG: Template Task Graph C++ API
18 stars 12 forks source link

split "examples" into mini-examples and/or (unit) tests #24

Open evaleev opened 4 years ago

evaleev commented 4 years ago

most examples are big and messy. Each example should become a proper tested standalone example (with matching "tutorial" in the docs walking through it), or a test (some smaller examples can be turned into proper unit tests).

use catch2

evaleev commented 4 years ago

@robertjharrison now with the use of FetchContent module getting Catch2 is trivial enough to be part of the official CMake docs:

https://cmake.org/cmake/help/v3.17/module/FetchContent.html#examples

target_link_libraries(unit-tests-ttg Catch2::Catch2) is all that's needed then.