|
|
|
@ -1,22 +1,22 @@
|
|
|
|
|
project(lattedock)
|
|
|
|
|
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
|
|
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
set(VERSION 0.10.77)
|
|
|
|
|
set(VERSION 0.10.240)
|
|
|
|
|
set(AUTHOR "Michail Vourlakos, Smith Ar")
|
|
|
|
|
set(EMAIL "mvourlakos@gmail.com, audoban@openmailbox.org")
|
|
|
|
|
set(WEBSITE "https://userbase.kde.org/LatteDock")
|
|
|
|
|
set(BUG_ADDRESS "https://bugs.kde.org/enter_bug.cgi?product=lattedock")
|
|
|
|
|
set(FAQS "https://userbase.kde.org/LatteDock/FAQ")
|
|
|
|
|
|
|
|
|
|
set(QT_MIN_VERSION "5.15.0")
|
|
|
|
|
set(KF5_MIN_VERSION "5.88.0")
|
|
|
|
|
set(QT_MIN_VERSION "6.5.0")
|
|
|
|
|
set(KF6_MIN_VERSION "5.240.0")
|
|
|
|
|
set(KDE_COMPILERSETTINGS_LEVEL "5.84.0")
|
|
|
|
|
|
|
|
|
|
set(KF5_LOCALE_PREFIX "")
|
|
|
|
|
set(KF6_LOCALE_PREFIX "")
|
|
|
|
|
|
|
|
|
|
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
|
|
|
|
|
find_package(ECM ${KF6_MIN_VERSION} REQUIRED NO_MODULE)
|
|
|
|
|
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
|
|
|
|
|
|
|
|
|
|
include(KDEInstallDirs)
|
|
|
|
@ -30,9 +30,9 @@ include(KDEPackageAppTemplates)
|
|
|
|
|
include(WriteBasicConfigVersionFile)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED NO_MODULE COMPONENTS DBus Gui Qml Quick)
|
|
|
|
|
find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED NO_MODULE COMPONENTS DBus Gui Qml Quick)
|
|
|
|
|
|
|
|
|
|
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
|
|
|
|
|
find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS
|
|
|
|
|
Activities Archive CoreAddons GuiAddons Crash DBusAddons Declarative GlobalAccel Kirigami2
|
|
|
|
|
I18n IconThemes KIO NewStuff Notifications Plasma PlasmaQuick Wayland WindowSystem XmlGui)
|
|
|
|
|
|
|
|
|
@ -48,7 +48,6 @@ set_package_properties(X11 PROPERTIES DESCRIPTION "X11 libraries"
|
|
|
|
|
if(X11_FOUND)
|
|
|
|
|
find_package(XCB MODULE REQUIRED COMPONENTS XCB RANDR SHAPE EVENT)
|
|
|
|
|
set_package_properties(XCB PROPERTIES TYPE REQUIRED)
|
|
|
|
|
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS X11Extras)
|
|
|
|
|
|
|
|
|
|
if(NOT X11_SM_FOUND)
|
|
|
|
|
message(FATAL_ERROR "\nThe X11 Session Management (SM) development package could not be found.
|
|
|
|
@ -67,19 +66,14 @@ find_package(Qt${QT_MAJOR_VERSION}WaylandClient)
|
|
|
|
|
find_package(PlasmaWaylandProtocols 1.6 REQUIRED)
|
|
|
|
|
find_package(Wayland REQUIRED COMPONENTS Client)
|
|
|
|
|
|
|
|
|
|
string(REGEX MATCH "\\.([^]]+)\\." KF5_VERSION_MINOR ${KF5_VERSION})
|
|
|
|
|
string(REGEX REPLACE "\\." "" KF5_VERSION_MINOR ${KF5_VERSION_MINOR})
|
|
|
|
|
string(REGEX MATCH "\\.([^]]+)\\." KF6_VERSION_MINOR ${KF6_VERSION})
|
|
|
|
|
string(REGEX REPLACE "\\." "" KF6_VERSION_MINOR ${KF6_VERSION_MINOR})
|
|
|
|
|
|
|
|
|
|
message(STATUS "KF5 VERSION : ${KF5_VERSION}")
|
|
|
|
|
message(STATUS "KF5 VERSION MINOR : ${KF5_VERSION_MINOR}")
|
|
|
|
|
message(STATUS "KF6 VERSION : ${KF6_VERSION}")
|
|
|
|
|
message(STATUS "KF6 VERSION MINOR : ${KF6_VERSION_MINOR}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
include(ECMFindQmlModule)
|
|
|
|
|
ecm_find_qmlmodule(QtQuick 2.7)
|
|
|
|
|
ecm_find_qmlmodule(QtQuick.Layouts 1.3)
|
|
|
|
|
ecm_find_qmlmodule(QtQuick.Controls 1.4)
|
|
|
|
|
ecm_find_qmlmodule(QtQuick.Controls.Styles.Plasma 2.0)
|
|
|
|
|
ecm_find_qmlmodule(QtGraphicalEffects 1.0)
|
|
|
|
|
ecm_find_qmlmodule(org.kde.kquickcontrolsaddons 2.0)
|
|
|
|
|
ecm_find_qmlmodule(org.kde.plasma.core 2.0)
|
|
|
|
|
ecm_find_qmlmodule(org.kde.plasma.components 2.0)
|
|
|
|
|