From 7e315ef53a9574ee1760b653a6b326d60e5bd15b Mon Sep 17 00:00:00 2001 From: Michael Palimaka Date: Sat, 11 Jan 2014 20:03:54 +1100 Subject: Improve dependency specifications. QtTest and QtConcurrent are only required for autotests, so no need to find them unconditionally. QtWidgets is not actually used - QtGui is instead. REVIEW: 114962 --- autotests/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'autotests') diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt index 18317ee8..93745a99 100644 --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -4,12 +4,18 @@ remove_definitions(-DQT_NO_CAST_FROM_ASCII) include(ECMMarkAsTest) find_package(Qt5Test ${QT_REQUIRED_VERSION} CONFIG QUIET) +find_package(Qt5Concurrent ${QT_REQUIRED_VERSION} CONFIG QUIET) if(NOT Qt5Test_FOUND) message(STATUS "Qt5Test not found, autotests will not be built.") return() endif() +if(NOT Qt5Concurrent_FOUND) + message(STATUS "Qt5Concurrent not found, autotests will not be built.") + return() +endif() + macro(KCONFIGCORE_UNIT_TESTS) foreach(_testname ${ARGN}) add_executable(${_testname} ${_testname}.cpp) # TODO NOGUI -- cgit v1.2.1