diff options
| author | Lexi Winter <lexi@le-fay.org> | 2025-07-02 05:49:47 +0100 |
|---|---|---|
| committer | Lexi Winter <lexi@le-fay.org> | 2025-07-02 05:49:47 +0100 |
| commit | ebe4cb0bdeabd06a31072547af47cacaab7f78c0 (patch) | |
| tree | 65a81c2c86260b595107ee6c5505583f9afaf39d /nihil.core/CMakeLists.txt | |
| parent | 5adeb648f74c1771164c0686d6e0fc584cf36d9e (diff) | |
| download | nihil-ebe4cb0bdeabd06a31072547af47cacaab7f78c0.tar.gz nihil-ebe4cb0bdeabd06a31072547af47cacaab7f78c0.tar.bz2 | |
replace nihil::generator
the new implementation is much simpler and PD-licensed. the only
downside is it doesn't support elements_of.
while here, move it to nihil.core.
Diffstat (limited to 'nihil.core/CMakeLists.txt')
| -rw-r--r-- | nihil.core/CMakeLists.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nihil.core/CMakeLists.txt b/nihil.core/CMakeLists.txt index e9998a3..d0713ce 100644 --- a/nihil.core/CMakeLists.txt +++ b/nihil.core/CMakeLists.txt @@ -14,6 +14,7 @@ target_sources(nihil.core error.ccm features.ccm flagset.ccm + generator.ccm guard.ccm match.ccm monad.ccm @@ -25,3 +26,31 @@ target_sources(nihil.core tabulate.ccm uuid.ccm ) + +if (NIHIL_TESTS) + add_executable(nihil.core.test + capture_stream.test.cc + ctype.test.cc + error.test.cc + flagset.test.cc + generator.test.cc + guard.test.cc + match.test.cc + monad.test.cc + next_word.test.cc + parse_size.test.cc + skipws.test.cc + tabulate.test.cc + ) + + target_link_libraries(nihil.core.test PRIVATE + nihil.std + nihil.core + Catch2::Catch2WithMain) + + include(CTest) + include(Catch) + catch_discover_tests(nihil.core.test) + + enable_testing() +endif () |
