mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 09:55:55 +00:00
cmake: copy qt version requirements from autotools
Set versions 4.8.0 and 5.2.0 as minimal required for Qt4 and Qt5.
This commit is contained in:
parent
6800c1a6ad
commit
05e4d4fc0d
@ -23,7 +23,7 @@ if (QT5)
|
|||||||
if (DBUS)
|
if (DBUS)
|
||||||
list (APPEND QBT_QT_COMPONENTS DBus)
|
list (APPEND QBT_QT_COMPONENTS DBus)
|
||||||
endif (DBUS)
|
endif (DBUS)
|
||||||
find_package(Qt5 5.5.0 COMPONENTS ${QBT_QT_COMPONENTS} REQUIRED)
|
find_package(Qt5 5.2.0 COMPONENTS ${QBT_QT_COMPONENTS} REQUIRED)
|
||||||
else (QT5)
|
else (QT5)
|
||||||
list(APPEND QBT_QT_COMPONENTS QtCore QtNetwork QtXml)
|
list(APPEND QBT_QT_COMPONENTS QtCore QtNetwork QtXml)
|
||||||
if (GUI)
|
if (GUI)
|
||||||
@ -32,7 +32,7 @@ else (QT5)
|
|||||||
if (DBUS)
|
if (DBUS)
|
||||||
list (APPEND QBT_QT_COMPONENTS QtDBus)
|
list (APPEND QBT_QT_COMPONENTS QtDBus)
|
||||||
endif (DBUS)
|
endif (DBUS)
|
||||||
find_package(Qt4 4.8.7 COMPONENTS ${QBT_QT_COMPONENTS} REQUIRED)
|
find_package(Qt4 4.8.0 COMPONENTS ${QBT_QT_COMPONENTS} REQUIRED)
|
||||||
include(${QT_USE_FILE})
|
include(${QT_USE_FILE})
|
||||||
endif (QT5)
|
endif (QT5)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user