Quieten Qt5 check in caf unittests

This commit is contained in:
Gaute Lindkvist 2018-12-03 14:23:19 +01:00
parent 0371a1962e
commit 8cd2d37b92
4 changed files with 7 additions and 7 deletions

View File

@ -1,15 +1,15 @@
cmake_minimum_required (VERSION 2.8.12)
find_package(Qt5 CONFIG REQUIRED Core)
project ( cafPdmCore_UnitTests )
find_package(Qt5Core CONFIG QUIET)
if (Qt5Core_FOUND)
find_package(Qt5 CONFIG REQUIRED Core Gui Widgets)
else()
find_package(Qt4 COMPONENTS QtCore QtGui QtMain REQUIRED)
include(${QT_USE_FILE})
include(${QT_USE_FILE})
endif(Qt5Core_FOUND)
project ( cafPdmCore_UnitTests )
include_directories (
${CMAKE_CURRENT_SOURCE_DIR} # required for gtest-all.cpp
)

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 2.8.12)
find_package(Qt5 CONFIG COMPONENTS Core)
find_package(Qt5Core CONFIG QUIET)
if (Qt5Core_FOUND)
find_package(Qt5 CONFIG REQUIRED Core Xml)
else()

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 2.8.12)
find_package(Qt5 CONFIG COMPONENTS Core)
find_package(Qt5Core CONFIG QUIET)
if (Qt5Core_FOUND)
find_package(Qt5 CONFIG REQUIRED Core Xml)
else()

View File

@ -6,7 +6,7 @@ project ( cafTestApplication )
find_package( OpenGL )
# Qt
find_package(Qt5 CONFIG COMPONENTS Core)
find_package(Qt5Core CONFIG QUIET)
if (Qt5Core_FOUND)
find_package(Qt5 CONFIG REQUIRED Core Gui OpenGL Widgets)
else()