aboutsummaryrefslogtreecommitdiff
path: root/finance/alkimia/files/patch-autotests_CMakeLists.txt
blob: 6c61619114494738a1ed9eae7a9f5dc74f686900 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Find testlib (moved from ../CMakeLists.txt)

--- autotests/CMakeLists.txt.orig	2018-03-15 19:28:26 UTC
+++ autotests/CMakeLists.txt
@@ -1,8 +1,10 @@
 include(ECMAddTests)
 
 if(BUILD_QT4)
+    find_package(Qt4 REQUIRED COMPONENTS QtTest)
     set(TEST_LIB ${QT_QTTEST_LIBRARY})
 else()
+    find_package(Qt5 REQUIRED COMPONENTS Test)
     set(TEST_LIB Qt5::Test)
 endif()