浏览代码

Added qt min version variable to cmake.

Malte Veerman 6 年之前
父节点
当前提交
fdbf2426a5
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      CMakeLists.txt

+ 3 - 1
CMakeLists.txt

@@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.0.2)
 
 
 project(fancontroller)
 project(fancontroller)
 
 
+set(QT_MIN_VERSION "5.8.0")
+
 
 
 #options
 #options
 option(NO_SYSTEMD "Compile without Systemd support. Reduces functionality significantly!" OFF)
 option(NO_SYSTEMD "Compile without Systemd support. Reduces functionality significantly!" OFF)
@@ -47,7 +49,7 @@ include(FindPkgConfig)
 include(ECMQMLModules)
 include(ECMQMLModules)
 
 
 #Find Qt5
 #Find Qt5
-find_package(Qt5Core REQUIRED)
+find_package(Qt5Core ${QT_MIN_VERSION} REQUIRED)
 
 
 #Find KF5
 #Find KF5
 find_package(KF5 COMPONENTS I18n REQUIRED)
 find_package(KF5 COMPONENTS I18n REQUIRED)