#------------------------------------------------------------------------------ # Find Qt5 libraries and headers. # If Qt5_FIND_COMPONENTS is defined as a list of Qt5 modules, only those modules # will be looked for and added. If it is not defined, all modules will be looked # for and added to the project. # # This file sets the following variables: # # QT5_FOUND (Indicating that Qt5 libraries found) # QT_LIBRARIES (List of Qt5 libraries) # QT_QMAKE_EXECUTABLE # QT_RCC_EXECUTABLE # QT_UIC_EXECUTABLE # QT_QDBUSCPP2XML_EXECUTABLE # QT_QDBUSXML2CPP_EXECUTABLE # # In addition, this file also includes the Qt5 library include dirs and adds the # Qt5 library definitions #------------------------------------------------------------------------------ FIND_PACKAGE( Qt5Core QUIET ) IF( NOT Qt5_FIND_COMPONENTS ) SET (Qt5_FIND_COMPONENTS Core Help Network Test UiTools Widgets Xml ) ENDIF() IF( Qt5Core_FOUND ) # Check if Qtversion is >=QT_OFFICIAL_VERSION. If so, we are good. Otherwise we will post a # warning of versions (