From 59b637366924eefd46e467021fd7cb41edffe749 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Sat, 26 Apr 2014 17:33:58 +0200 Subject: [PATCH] Move find_package() test back to autotests/CMakeLists.txt --- CMakeLists.txt | 2 +- autotests/CMakeLists.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d21c38cd..bc5d6d041 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,7 +40,7 @@ endif() set (REQUIRED_QT_VERSION "5.2.0") -find_package(Qt5 ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE COMPONENTS Quick Sql Qml Widgets Svg Script Test) +find_package(Qt5 ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE COMPONENTS Quick Sql Qml Widgets Svg Script) find_package(KF5Activities ${KF5_DEP_VERSION} REQUIRED) find_package(KF5Archive ${KF5_DEP_VERSION} REQUIRED) diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt index 7ee5df99b..dcee37f07 100644 --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -1,3 +1,6 @@ +find_package(Qt5Test ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE) +set_package_properties(Qt5Test PROPERTIES PURPOSE "Required for tests") + set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}) include(ECMMarkAsTest)