summaryrefslogtreecommitdiff
blob: f72b0963e3fb5c01cb7ce920acd63058c382b239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
commit e9ddacb58dcf011bc2a877c11b026cab94031e65
Author: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
Date:   Sat May 27 15:58:32 2017 +0200

    If tests are optional, autotests subdir must be conditional

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0c1b691..a2a771c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -61,7 +61,9 @@ add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
 add_definitions(-DQT_STRICT_ITERATORS)
 add_definitions(-DTRANSLATION_DOMAIN=\"kio5_gdrive\")
 
-add_subdirectory(autotests)
+if(BUILD_TESTING)
+    add_subdirectory(autotests)
+endif()
 add_subdirectory(desktop)
 add_subdirectory(doc)
 add_subdirectory(src)