From 6e25dd4670f0d14bdc8aff050bdacb050e0327ff Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Wed, 6 Oct 2021 20:30:03 +0200 Subject: [PATCH] Make tests optional Signed-off-by: Andreas Sturmlechner --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1cb7098..97d60a3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -124,7 +124,9 @@ else() message(STATUS "ICU Library not found. KEncodingProber fallback will be used for charset detection.") endif() +if(BUILD_TESTING) add_subdirectory(tests) +endif() add_subdirectory(scripting) add_executable(subtitlecomposer WIN32 main.cpp ${subtitlecomposer_RES_SRC}) -- 2.33.0