blob: 75d4f71a2ff77d6abd01f58dde4da57f4db488ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
From 6e25dd4670f0d14bdc8aff050bdacb050e0327ff Mon Sep 17 00:00:00 2001
From: Andreas Sturmlechner <asturm@gentoo.org>
Date: Wed, 6 Oct 2021 20:30:03 +0200
Subject: [PATCH] Make tests optional
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
---
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
|