diff options
author | Alex Richardson <arichardson.kde@googlemail.com> | 2014-01-13 17:31:38 +0100 |
---|---|---|
committer | Alex Richardson <arichardson.kde@googlemail.com> | 2014-01-13 17:31:38 +0100 |
commit | f714766518a47b68f17a890a260ddec56c037ab8 (patch) | |
tree | 1edb33eddc343d2be88ecdf2297f9eee741d5cfd | |
parent | 50ce971062e1f1ca918f58b0e490f3e7f2f20464 (diff) | |
download | kconfig-f714766518a47b68f17a890a260ddec56c037ab8.tar.gz kconfig-f714766518a47b68f17a890a260ddec56c037ab8.tar.bz2 |
Make Qt5Test an optional dependency
It is only needed for building the autotests
-rw-r--r-- | autotests/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt index e4790f69..18317ee8 100644 --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -3,7 +3,12 @@ remove_definitions(-DQT_NO_CAST_FROM_ASCII) include(ECMMarkAsTest) -find_package(Qt5 5.2.0 CONFIG REQUIRED Concurrent Test Widgets) +find_package(Qt5Test ${QT_REQUIRED_VERSION} CONFIG QUIET) + +if(NOT Qt5Test_FOUND) + message(STATUS "Qt5Test not found, autotests will not be built.") + return() +endif() macro(KCONFIGCORE_UNIT_TESTS) foreach(_testname ${ARGN}) |