diff options
| author | Thijs Paelman <thijs@ouroboros.rocks> | 2025-11-03 22:40:55 +0100 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2025-11-07 08:35:48 +0100 |
| commit | ed8a62f1cdca19c09caf52f2e36f45dafaa9cff8 (patch) | |
| tree | e3bde26d332953eb205885a37870068bd5e3a11f /CMakeLists.txt | |
| parent | 181739aa4571b8707160b946f1e1e3a92a3c3e3b (diff) | |
| download | ouroboros-ed8a62f1cdca19c09caf52f2e36f45dafaa9cff8.tar.gz ouroboros-ed8a62f1cdca19c09caf52f2e36f45dafaa9cff8.zip | |
build: Only add tests when BUILD_TESTING is ON
By default, BUILD_TESTING = ON due to the inclusion of the CTest module.
Signed-off-by: Thijs Paelman <thijs@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ffa5bf4..cd2bffee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -179,7 +179,10 @@ else () message(STATUS "Systemd service installation disabled by user") endif() -enable_testing() +include(CTest) # Sets BUILD_TESTING by default to on. +# BUILD_TESTS: control if tests are included by CMAKE. +# Can depend on more than only BUILD_TESTING in the future. +set(BUILD_TESTS ${BUILD_TESTING}) add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}) find_package(ProtobufC QUIET) |
