summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-07-21 19:58:16 (GMT)
committerMontel Laurent <montel@kde.org>2016-07-21 19:58:16 (GMT)
commitdb42c71532764449b37ead24a4067506a5930642 (patch)
tree347b0eeecdef731a3c2cce596fa1be4903a96c71
parent348c5dfe634fc8542f8991f06a4b359f9bc85b48 (diff)
Start to migrate to KDiagram
-rw-r--r--CMakeLists.txt15
1 files changed, 13 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7ae31a0..1b83f6e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,6 +19,8 @@ include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(ECMQtDeclareLoggingCategory)
include(ECMAddTests)
+option(KDIAGRAM_SUPPORT "Enable it to test build against KDIAGRAM" FALSE)
+
set(PIM_VERSION "5.3.40")
set(INCIDENCEEDITOR_LIB_VERSION ${PIM_VERSION})
@@ -32,10 +34,20 @@ set(CALENDARUTILS_LIB_VERSION "5.2.80")
set(KCALENDARCORE_LIB_VERSION "5.2.80")
set(CALENDARSUPPORT_LIB_VERSION "5.2.80")
set(LIBKDEPIM_LIB_VERSION "5.2.80")
-set(KDGANTT2_LIB_VERSION "5.2.80")
set(EVENTVIEW_LIB_VERSION "5.2.80")
set(AKONADI_VERSION "5.2.80")
+
+if (KDIAGRAM_SUPPORT)
+ set(KDIAGRAM_LIB_VERSION "1.4.0")
+ find_package(KGantt ${KDIAGRAM_LIB_VERSION} CONFIG REQUIRED)
+ add_definitions(-DKDIAGRAM_SUPPORT)
+else()
+ set(KDGANTT2_LIB_VERSION "5.2.80")
+ find_package(KF5KDGantt2 ${KDGANTT2_LIB_VERSION} CONFIG REQUIRED)
+endif()
+
+
find_package(KF5Akonadi ${AKONADI_VERSION} CONFIG REQUIRED)
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets Test)
find_package(KF5I18n ${KF5_VERSION} CONFIG REQUIRED)
@@ -48,7 +60,6 @@ find_package(KF5CalendarSupport ${CALENDARSUPPORT_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5EventViews ${EVENTVIEW_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Libkdepim ${LIBKDEPIM_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5KdepimDBusInterfaces ${KDEPIM_LIB_VERSION} CONFIG REQUIRED)
-find_package(KF5KDGantt2 ${KDGANTT2_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5CalendarUtils ${CALENDARUTILS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5CalendarCore ${KCALENDARCORE_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5MailTransport ${KMAILTRANSPORT_LIB_VERSION} CONFIG REQUIRED)