summaryrefslogtreecommitdiff
path: root/net-im/ktp-common-internals/files/ktp-common-internals-9999-tests-optional.patch
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2015-01-21 01:50:21 +0100
committerJohannes Huber <johu@gentoo.org>2015-01-21 21:47:43 +0100
commitfb76c5847c5c615bfe5649645646f4a0bef4c212 (patch)
treedeb0f44743dc8831038aa1ba2e439f46466efbe0 /net-im/ktp-common-internals/files/ktp-common-internals-9999-tests-optional.patch
parent5bca4f847ba82eed4ff02cb5c8ffa794e2ebd325 (diff)
downloadkde-fb76c5847c5c615bfe5649645646f4a0bef4c212.tar.gz
kde-fb76c5847c5c615bfe5649645646f4a0bef4c212.tar.bz2
kde-fb76c5847c5c615bfe5649645646f4a0bef4c212.zip
[net-im/ktp-common-internals] Make tests optional
Diffstat (limited to 'net-im/ktp-common-internals/files/ktp-common-internals-9999-tests-optional.patch')
-rw-r--r--net-im/ktp-common-internals/files/ktp-common-internals-9999-tests-optional.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/net-im/ktp-common-internals/files/ktp-common-internals-9999-tests-optional.patch b/net-im/ktp-common-internals/files/ktp-common-internals-9999-tests-optional.patch
new file mode 100644
index 00000000000..43431732cc9
--- /dev/null
+++ b/net-im/ktp-common-internals/files/ktp-common-internals-9999-tests-optional.patch
@@ -0,0 +1,28 @@
+--- a/CMakeLists.txt 2015-01-20 21:49:46.354302243 +0100
++++ b/CMakeLists.txt 2015-01-21 01:45:39.660978780 +0100
+@@ -10,10 +10,9 @@
+ cmake_policy(SET CMP0002 OLD)
+
+ find_package (Qt5 REQUIRED CONFIG COMPONENTS
+- Qml
+- Test)
++ Qml)
+
+-find_package (KF5 REQUIRED COMPONENTS
++find_package (KF5 REQUIRED COMPONENTS
+ CoreAddons
+ Notifications
+ KIO
+@@ -101,7 +100,11 @@
+ add_subdirectory(KTp)
+ add_subdirectory(tools)
+ add_subdirectory(data)
+-add_subdirectory(tests)
++
++if(BUILD_TESTING)
++ find_package(Qt5Test REQUIRED CONFIG)
++ add_subdirectory(tests)
++endif()
+
+ if (OTR_LIBS_FOUND)
+ include_directories (${LIBOTR_INCLUDE_DIR}