cmake: start to add the Qt components. No real functionality yet.

This commit is contained in:
2018-05-22 15:25:22 +02:00
parent 7a0609dc84
commit 0bc2ef7612
7 changed files with 42 additions and 12 deletions

View File

@ -91,10 +91,12 @@ if (qt_based_tools)
# first try Qt5
# Find the QtCore library
find_package(Qt5Core)
# Find the QtWidgets library
find_package(Qt5Widgets)
# Find the QtXml library
find_package(Qt5Xml)
if (Qt5Core_FOUND)
# Find the QtWidgets library
find_package(Qt5Widgets CONFIG REQUIRED)
# Find the QtXml library
find_package(Qt5Xml CONFIG REQUIRED)
endif (Qt5Core_FOUND)
# if Qt5 is not found, try Qt4
if (NOT Qt5Core_FOUND)