Cleanups, build if Qt5 is not on system

This commit is contained in:
Daniel Molkentin 2014-04-07 18:08:28 +02:00
parent 69bdccfd2f
commit 4ff39d8114

View file

@ -4,15 +4,14 @@ include (MacroLogFeature)
option(BUILD_WITH_QT4 "Build with Qt4 no matter if Qt5 was found" OFF)
if( NOT BUILD_WITH_QT4 )
find_package(Qt5Core REQUIRED)
find_package(Qt5Core QUIET)
if( Qt5Core_FOUND )
message("Found Qt5 core, checking for further deps")
message(STATUS "Found Qt5 core, checking for further dependencies...")
find_package(Qt5Widgets REQUIRED)
find_package(Qt5Quick REQUIRED)
find_package(Qt5PrintSupport REQUIRED)
find_package(Qt5WebKit REQUIRED)
find_package(Qt5Network REQUIRED)
find_package(Qt5Sensors REQUIRED)
find_package(Qt5Xml REQUIRED)
find_package(Qt5WebKitWidgets REQUIRED)
if(APPLE)