Commit b467a067 authored by Stefan Brüns's avatar Stefan Brüns
Browse files

Make QTest dependency optional

Skip building the autotests in case QTest is not found.
parent 60a14242
......@@ -32,7 +32,7 @@ include(KDECMakeSettings)
include(GenerateExportHeader)
set(REQUIRED_QT_VERSION 5.9.0)
find_package(Qt5 ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE COMPONENTS Core Network Test Xml)
find_package(Qt5 ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE COMPONENTS Core Network Xml)
find_package(KDSoap 1.9.0 REQUIRED)
set_package_properties(KDSoap PROPERTIES
......@@ -42,6 +42,10 @@ set_package_properties(KDSoap PROPERTIES
PURPOSE "Support for SOAP client protocol"
)
if (BUILD_TESTING)
find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Test)
endif()
include(ECMSetupVersion)
include(ECMGenerateHeaders)
include(ECMQtDeclareLoggingCategory)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment