From 7f9ad6933df8f498d240858bf32872a7c5568ade Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Tue, 5 Sep 2023 15:07:23 +0200 Subject: conan: enable tests during build --- conanfile.py | 1 + source/CMakeLists.txt | 2 ++ source/tests/CMakeLists.txt | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3