message: [CMake] Check for and require Qt 5.5.1 minimum version
diff: CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
  +set(QT_MINIMUM_VERSION 5.5.1)
  set(CMAKE_INCLUDE_CURRENT_DIR ON)
  set(CMAKE_AUTOUIC_SEARCH_PATHS ${CMAKE_CURRENT_SOURCE_DIR}/forms ${CMAKE_CURRENT_SOURCE_DIR}/pivx/forms ${CMAKE_CURRENT_SOURCE_DIR}/pivx/settings/forms)
  set(CMAKE_AUTOMOC ON)
  @@ -10,18 +11,12 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
  set(CMAKE_POSITION_INDEPENDENT_CODE ON)
  endif ()
  -find_package(Qrcode)
  -if (QRCODE_FOUND)
  - include_directories ( ${QRCODE_INCLUDE_DIR} )
  - link_directories ( ${QRCODE_LIBRARY_DIRS} )
  -endif()
  -
  unset(Qt5Enables)
  foreach(comp Widgets Core Gui Network LinguistTools DBus Svg Charts)
  find_package(Qt5${comp})
  set(Qt5Enables "${Qt5Enables};Qt5${comp}_FOUND")
  if(Qt5${comp}_FOUND)
  - MESSAGE(STATUS "FOUND QT5${comp}")
  + MESSAGE(STATUS "FOUND Qt5${comp}")
  include_directories(${include_directories} ${Qt5${comp}_INCLUDE_DIRS} ${QT_USE_FILE})
  add_definitions(${Qt5${comp}_DEFINITIONS})
  list(APPEND Qt5_LIBRARIES ${Qt5${comp}_LIBRARIES})
  @@ -30,6 +25,16 @@ foreach(comp Widgets Core Gui Network LinguistTools DBus Svg Charts)
  endif()
  endforeach(comp)
  +if (Qt5Core_FOUND)
  + if (Qt5Core_VERSION VERSION_LESS QT_MINIMUM_VERSION)
  + MESSAGE(FATAL_ERROR "Minimum supported Qt5 version is ${QT_MINIMUM_VERSION}")
  + else()
  + MESSAGE(STATUS "Found Qt5 version: ${Qt5Core_VERSION}")
  + endif()
  +else()
  + MESSAGE(FATAL_ERROR "Could not find any Qt5 installation")
  +endif()
  +
  if (Qt5DBus_FOUND)
  add_compile_options("-DUSE_DBUS")
  endif()
  @@ -38,6 +43,12 @@ if (Qt5Charts_FOUND)
  add_compile_options("-DUSE_QTCHARTS")
  endif()
  +find_package(Qrcode)
  +if (QRCODE_FOUND)
  + include_directories ( ${QRCODE_INCLUDE_DIR} )
  + link_directories ( ${QRCODE_LIBRARY_DIRS} )
  +endif()
  +
  find_program(MOC_BIN NAMES moc moc-qt5 qt5-moc
  PATHS /usr/lib/qt5/bin /usr/lib/x86_64-linux-gnu/qt5/bin /usr/local/opt/qt/bin /usr/local/opt/qt5/bin
  NO_DEFAULT_PATH
  