diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2023-09-05 15:07:23 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2023-09-05 15:07:23 +0200 |
| commit | 7f9ad6933df8f498d240858bf32872a7c5568ade (patch) | |
| tree | 89f72230c0da663539030f79d6d904b63aaed5e1 | |
| parent | b0003d8680669ac7c3b0ca202f9d7442d57ad42e (diff) | |
| download | wanda-7f9ad6933df8f498d240858bf32872a7c5568ade.tar.xz wanda-7f9ad6933df8f498d240858bf32872a7c5568ade.zip | |
conan: enable tests during build
| -rw-r--r-- | conanfile.py | 1 | ||||
| -rw-r--r-- | source/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | source/tests/CMakeLists.txt | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/conanfile.py b/conanfile.py index 956c5bf..ea6ba33 100644 --- a/conanfile.py +++ b/conanfile.py @@ -42,6 +42,7 @@ class Wanda(ConanFile): cmake = CMake(self) cmake.configure() cmake.build() + cmake.test(env="CTEST_OUTPUT_ON_FAILURE=1") def configure(self): self.options["boost"].header_only = True diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 38a8208..300953d 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -5,6 +5,8 @@ project("wanda" VERSION "1.0.0" ) +enable_testing() + add_subdirectory("app") add_subdirectory("lib") add_subdirectory("tests")
\ No newline at end of file diff --git a/source/tests/CMakeLists.txt b/source/tests/CMakeLists.txt index 57961c1..110c864 100644 --- a/source/tests/CMakeLists.txt +++ b/source/tests/CMakeLists.txt @@ -1,6 +1,5 @@ find_package("Catch2") include("Catch") -enable_testing() add_subdirectory("lib/system")
\ No newline at end of file |
