diff options
author | Michael Palimaka <kensington@gentoo.org> | 2014-01-11 20:03:54 +1100 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2014-01-15 16:52:51 +1100 |
commit | 7e315ef53a9574ee1760b653a6b326d60e5bd15b (patch) | |
tree | 206d5e98b97c862e4418b5bb474fe7bd1f949ea5 /autotests | |
parent | f714766518a47b68f17a890a260ddec56c037ab8 (diff) | |
download | kconfig-7e315ef53a9574ee1760b653a6b326d60e5bd15b.tar.gz kconfig-7e315ef53a9574ee1760b653a6b326d60e5bd15b.tar.bz2 |
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
Diffstat (limited to 'autotests')
-rw-r--r-- | autotests/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
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 |