summaryrefslogtreecommitdiff
path: root/dev-libs/libdbusmenu-qt5/files/libdbusmenu-qt-0.9.3_pre20140619-optionaltests.patch
blob: 7f6d82eb00db592989196590fe985fefda07b48d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- CMakeLists.txt.old	2014-10-10 21:14:47.139654992 +0200
+++ CMakeLists.txt	2014-10-10 21:16:17.114656451 +0200
@@ -90,8 +90,12 @@
     )
 
 add_subdirectory(src)
+
+option(BUILD_TESTS "Build tests for qt4" ON)
 if (NOT USE_QT5) # TODO port tests to Qt5
-add_subdirectory(tests)
+	if(BUILD_TESTS)
+		add_subdirectory(tests)
+	endif(BUILD_TESTS)
 endif()
 add_subdirectory(tools)