Commit 09dafaad authored by Laurent Montel's avatar Laurent Montel 😁

Use KF5_VERSION

parent be3b9f36
......@@ -51,7 +51,8 @@ else()
set(LIBRARY_NAMELINK LIBRARY NAMELINK_SKIP)
# we need some parts of the ECM CMake helpers
find_package(ECM 5.22.0 REQUIRED NO_MODULE)
set(KF5_VERSION "5.22.0")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${kdepim_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(ECMOptionalAddSubdirectory)
include(ECMInstallIcons)
......@@ -127,7 +128,6 @@ else()
set(AKONADINOTES_LIB_VERSION "5.2.40")
set(QT_REQUIRED_VERSION "5.6.0")
set(KF5_VERSION "5.22.0")
option(KDEPIM_ENTERPRISE_BUILD "Enable features specific to the enterprise branch, which are normally disabled. Also, it disables many components not needed for Kontact such as the Kolab client." FALSE)
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets Test Sql Concurrent UiTools WebEngine WebEngineWidgets)
find_package(Qt5X11Extras NO_MODULE)
......
......@@ -6,7 +6,8 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${accountwizard_SOURCE_DIR})
set(LIBRARY_NAMELINK LIBRARY NAMELINK_SKIP)
# we need some parts of the ECM CMake helpers
find_package(ECM 5.22.0 REQUIRED NO_MODULE)
set(KF5_VERSION "5.22.0")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${accountwizard_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(ECMOptionalAddSubdirectory)
include(ECMInstallIcons)
......@@ -40,7 +41,6 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${accountwizard_SOURCE_DIR})
set(KDEPIM_LIB_SOVERSION "5")
set(QT_REQUIRED_VERSION "5.6.0")
set(KF5_VERSION "5.22.0")
option(KDEPIM_ENTERPRISE_BUILD "Enable features specific to the enterprise branch, which are normally disabled. Also, it disables many components not needed for Kontact such as the Kolab client." FALSE)
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets Xml DBus Test)
set(MAILCOMMON_LIB_VERSION_LIB "5.2.55")
......
......@@ -2,7 +2,8 @@ project(akonadiconsole)
if(${CMAKE_SOURCE_DIR} STREQUAL ${akonadiconsole_SOURCE_DIR})
cmake_minimum_required(VERSION 2.8.12)
find_package(ECM 5.22.0 REQUIRED NO_MODULE)
set(KF5_VERSION "5.22.0")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${akonadiconsole_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(ECMInstallIcons)
......@@ -24,7 +25,6 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${akonadiconsole_SOURCE_DIR})
include(ECMQtDeclareLoggingCategory)
set(KF5_VERSION "5.22.0")
set(KDEPIM_VERSION_NUMBER "5.2.48")
set(KDEPIM_VERSION "${KDEPIM_VERSION_NUMBER}${KDEPIM_DEV_VERSION}")
......
......@@ -2,7 +2,8 @@ project(akregator)
if(${CMAKE_SOURCE_DIR} STREQUAL ${akregator_SOURCE_DIR})
cmake_minimum_required(VERSION 2.8.12)
find_package(ECM 5.22.0 REQUIRED NO_MODULE)
set(KF5_VERSION "5.22.0")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${akregator_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(ECMInstallIcons)
......@@ -24,7 +25,6 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${akregator_SOURCE_DIR})
include(ECMQtDeclareLoggingCategory)
set(KF5_VERSION "5.22.0")
set(KDEPIM_VERSION_NUMBER "5.2.48")
set(KDEPIM_VERSION "${KDEPIM_VERSION_NUMBER}${KDEPIM_DEV_VERSION}")
......
......@@ -2,7 +2,8 @@ project(blogilo)
if(${CMAKE_SOURCE_DIR} STREQUAL ${blogilo_SOURCE_DIR})
cmake_minimum_required(VERSION 2.8.12)
find_package(ECM 5.22.0 REQUIRED NO_MODULE)
set(KF5_VERSION "5.22.0")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${blogilo_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(ECMInstallIcons)
......@@ -24,7 +25,6 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${blogilo_SOURCE_DIR})
include(ECMQtDeclareLoggingCategory)
set(KF5_VERSION "5.22.0")
set(KDEPIM_VERSION_NUMBER "5.2.48")
set(KDEPIM_VERSION "${KDEPIM_VERSION_NUMBER}${KDEPIM_DEV_VERSION}")
......
......@@ -2,7 +2,8 @@ project(console)
if(${CMAKE_SOURCE_DIR} STREQUAL ${console_SOURCE_DIR})
cmake_minimum_required(VERSION 2.8.12)
find_package(ECM 5.22.0 REQUIRED NO_MODULE)
set(KF5_VERSION "5.22.0")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${console_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(ECMInstallIcons)
......@@ -24,7 +25,6 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${console_SOURCE_DIR})
include(ECMQtDeclareLoggingCategory)
set(KF5_VERSION "5.22.0")
set(KDEPIM_VERSION_NUMBER "5.2.48")
set(KDEPIM_VERSION "${KDEPIM_VERSION_NUMBER}${KDEPIM_DEV_VERSION}")
......
......@@ -2,7 +2,8 @@ project(grantleeditor)
if(${CMAKE_SOURCE_DIR} STREQUAL ${grantleeditor_SOURCE_DIR})
cmake_minimum_required(VERSION 2.8.12)
find_package(ECM 5.22.0 REQUIRED NO_MODULE)
set(KF5_VERSION "5.22.0")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${grantleeditor_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(ECMInstallIcons)
......@@ -24,7 +25,6 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${grantleeditor_SOURCE_DIR})
include(ECMQtDeclareLoggingCategory)
set(KF5_VERSION "5.22.0")
set(KDEPIM_VERSION_NUMBER "5.2.48")
set(KDEPIM_VERSION "${KDEPIM_VERSION_NUMBER}${KDEPIM_DEV_VERSION}")
......
......@@ -2,7 +2,8 @@ project(importwizard)
if(${CMAKE_SOURCE_DIR} STREQUAL ${importwizard_SOURCE_DIR})
cmake_minimum_required(VERSION 2.8.12)
find_package(ECM 5.22.0 REQUIRED NO_MODULE)
set(KF5_VERSION "5.22.0")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${importwizard_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(ECMInstallIcons)
......@@ -24,7 +25,6 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${importwizard_SOURCE_DIR})
include(ECMQtDeclareLoggingCategory)
set(KF5_VERSION "5.22.0")
set(KDEPIM_VERSION_NUMBER "5.2.48")
set(KDEPIM_VERSION "${KDEPIM_VERSION_NUMBER}${KDEPIM_DEV_VERSION}")
......
......@@ -2,7 +2,8 @@ project(kaddressbook)
if(${CMAKE_SOURCE_DIR} STREQUAL ${kaddressbook_SOURCE_DIR})
cmake_minimum_required(VERSION 2.8.12)
find_package(ECM 5.22.0 REQUIRED NO_MODULE)
set(KF5_VERSION "5.22.0")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${kaddressbook_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(ECMInstallIcons)
......@@ -24,7 +25,6 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${kaddressbook_SOURCE_DIR})
include(ECMQtDeclareLoggingCategory)
set(KF5_VERSION "5.22.0")
set(KDEPIM_VERSION_NUMBER "5.2.48")
set(KDEPIM_VERSION "${KDEPIM_VERSION_NUMBER}${KDEPIM_DEV_VERSION}")
......
......@@ -2,7 +2,8 @@ project(kalarm)
if(${CMAKE_SOURCE_DIR} STREQUAL ${kalarm_SOURCE_DIR})
cmake_minimum_required(VERSION 2.8.12)
find_package(ECM 5.22.0 REQUIRED NO_MODULE)
set(KF5_VERSION "5.22.0")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${kalarm_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(ECMInstallIcons)
......@@ -24,7 +25,6 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${kalarm_SOURCE_DIR})
include(ECMQtDeclareLoggingCategory)
set(KF5_VERSION "5.22.0")
set(KDEPIM_VERSION_NUMBER "5.2.48")
set(KDEPIM_VERSION "${KDEPIM_VERSION_NUMBER}${KDEPIM_DEV_VERSION}")
......
......@@ -8,7 +8,8 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${kmail_SOURCE_DIR})
if (POLICY CMP0063)
cmake_policy(SET CMP0063 NEW)
endif()
find_package(ECM 5.22.0 REQUIRED NO_MODULE)
set(KF5_VERSION "5.22.0")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${kmail_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(ECMOptionalAddSubdirectory)
include(ECMInstallIcons)
......@@ -57,7 +58,6 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${kmail_SOURCE_DIR})
set(KDEPIM_LIB_SOVERSION "5")
set(QT_REQUIRED_VERSION "5.6.0")
set(KF5_VERSION "5.22.0")
option(KDEPIM_ENTERPRISE_BUILD "Enable features specific to the enterprise branch, which are normally disabled. Also, it disables many components not needed for Kontact such as the Kolab client." FALSE)
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED DBus Network Test Widgets WebEngine WebEngineWidgets Xml)
set(LIBGRAVATAR_VERSION_LIB "5.2.40")
......
......@@ -3,7 +3,8 @@ project(knotes)
if(${CMAKE_SOURCE_DIR} STREQUAL ${knotes_SOURCE_DIR})
cmake_minimum_required(VERSION 2.8.12)
find_package(ECM 5.22.0 REQUIRED NO_MODULE)
set(KF5_VERSION "5.22.0")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${knotes_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(ECMInstallIcons)
......@@ -25,7 +26,6 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${knotes_SOURCE_DIR})
include(ECMQtDeclareLoggingCategory)
set(KF5_VERSION "5.22.0")
set(KDEPIM_VERSION_NUMBER "5.2.48")
set(KDEPIM_VERSION "${KDEPIM_VERSION_NUMBER}${KDEPIM_DEV_VERSION}")
......
project(kontact)
if(${CMAKE_SOURCE_DIR} STREQUAL ${kontact_SOURCE_DIR})
cmake_minimum_required(VERSION 2.8.12)
find_package(ECM 5.22.0 REQUIRED NO_MODULE)
set(KF5_VERSION "5.22.0")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${kontact_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(ECMInstallIcons)
......@@ -23,7 +24,6 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${kontact_SOURCE_DIR})
include(ECMQtDeclareLoggingCategory)
set(KF5_VERSION "5.22.0")
set(KDEPIM_VERSION_NUMBER "5.2.48")
set(KDEPIM_VERSION "${KDEPIM_VERSION_NUMBER}${KDEPIM_DEV_VERSION}")
......
......@@ -5,7 +5,8 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${korganizer_SOURCE_DIR})
if (POLICY CMP0063)
cmake_policy(SET CMP0063 NEW)
endif()
find_package(ECM 5.22.0 REQUIRED NO_MODULE)
set(KF5_VERSION "5.22.0")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${korganizer_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(ECMOptionalAddSubdirectory)
include(ECMInstallIcons)
......@@ -55,7 +56,6 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${korganizer_SOURCE_DIR})
set(AKONADINOTES_LIB_VERSION "5.2.40")
set(QT_REQUIRED_VERSION "5.6.0")
set(KF5_VERSION "5.22.0")
option(KDEPIM_ENTERPRISE_BUILD "Enable features specific to the enterprise branch, which are normally disabled. Also, it disables many components not needed for Kontact such as the Kolab client." FALSE)
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets Test UiTools)
find_package(Qt5X11Extras NO_MODULE)
......
......@@ -2,7 +2,8 @@ project(ktnef)
if(${CMAKE_SOURCE_DIR} STREQUAL ${ktnef_SOURCE_DIR})
cmake_minimum_required(VERSION 2.8.12)
find_package(ECM 5.22.0 REQUIRED NO_MODULE)
set(KF5_VERSION "5.22.0")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${akonadiconsole_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(ECMInstallIcons)
......@@ -27,7 +28,6 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${ktnef_SOURCE_DIR})
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Gui Widgets)
set(KTNEF_LIB_VERSION "5.2.40")
set(KF5_VERSION "5.22.0")
find_package(KF5Tnef ${KTNEF_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5DBusAddons ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5CoreAddons ${KF5_VERSION} CONFIG REQUIRED)
......
......@@ -2,7 +2,8 @@ project(mboximporter)
if(${CMAKE_SOURCE_DIR} STREQUAL ${mboximporter_SOURCE_DIR})
cmake_minimum_required(VERSION 2.8.12)
find_package(ECM 5.22.0 REQUIRED NO_MODULE)
set(KF5_VERSION "5.22.0")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ktnef_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(ECMInstallIcons)
......@@ -24,7 +25,6 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${mboximporter_SOURCE_DIR})
include(ECMQtDeclareLoggingCategory)
set(KF5_VERSION "5.22.0")
set(KDEPIM_VERSION_NUMBER "5.2.48")
set(KDEPIM_VERSION "${KDEPIM_VERSION_NUMBER}${KDEPIM_DEV_VERSION}")
......
......@@ -2,7 +2,8 @@ project(pimsettingexporter)
if(${CMAKE_SOURCE_DIR} STREQUAL ${pimsettingexporter_SOURCE_DIR})
cmake_minimum_required(VERSION 2.8.12)
find_package(ECM 5.22.0 REQUIRED NO_MODULE)
set(KF5_VERSION "5.22.0")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${pimsettingexporter_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(ECMInstallIcons)
......@@ -24,7 +25,6 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${pimsettingexporter_SOURCE_DIR})
include(ECMQtDeclareLoggingCategory)
set(KF5_VERSION "5.22.0")
set(KDEPIM_VERSION_NUMBER "5.2.48")
set(KDEPIM_VERSION "${KDEPIM_VERSION_NUMBER}${KDEPIM_DEV_VERSION}")
......
project( sieveeditor )
if(${CMAKE_SOURCE_DIR} STREQUAL ${sieveeditor_SOURCE_DIR})
cmake_minimum_required(VERSION 2.8.12)
find_package(ECM 5.22.0 REQUIRED NO_MODULE)
set(KF5_VERSION "5.22.0")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${sieveeditor_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(ECMInstallIcons)
......@@ -23,7 +24,6 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${sieveeditor_SOURCE_DIR})
include(ECMQtDeclareLoggingCategory)
set(KF5_VERSION "5.22.0")
set(KDEPIM_VERSION_NUMBER "5.2.48")
set(KDEPIM_VERSION "${KDEPIM_VERSION_NUMBER}${KDEPIM_DEV_VERSION}")
......
......@@ -6,8 +6,9 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${storageservicemanager_SOURCE_DIR})
if (POLICY CMP0063)
cmake_policy(SET CMP0063 NEW)
endif()
set(KF5_VERSION "5.22.0")
find_package(ECM 5.22.0 REQUIRED NO_MODULE)
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${storageservicemanager_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(ECMInstallIcons)
......@@ -29,7 +30,6 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${storageservicemanager_SOURCE_DIR})
include(ECMQtDeclareLoggingCategory)
set(KF5_VERSION "5.22.0")
set(KDEPIM_VERSION_NUMBER "5.2.48")
set(KDEPIM_VERSION "${KDEPIM_VERSION_NUMBER}${KDEPIM_DEV_VERSION}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment