diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e8b131..cf42b4b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,6 +41,11 @@ add_compile_options(-Wextra) add_compile_options(-Werror) add_compile_options(-Wpedantic) +if(NIHIL_TESTS) + add_subdirectory(contrib/catch2) + enable_testing() +endif() + add_subdirectory(nihil.cli) add_subdirectory(nihil.core) add_subdirectory(nihil.error) @@ -60,7 +65,3 @@ endif() if(NIHIL_CONFIG) add_subdirectory(nihil.config) endif() - -if(NIHIL_TESTS) - enable_testing() -endif() |
