summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-07-22 05:12:08 (GMT)
committerMontel Laurent <montel@kde.org>2016-07-22 05:12:08 (GMT)
commitcc1f7f0ee59fdad2f4a5a649f6d7eb08b2c7bde6 (patch)
tree05ab95b132b7977ee2f2fc4199896c8539edc128
parentdb42c71532764449b37ead24a4067506a5930642 (diff)
Fix lib
-rw-r--r--src/CMakeLists.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 8d81b7d..6abf70a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -94,6 +94,14 @@ add_library(KF5IncidenceEditor ${incidenceeditors_ng_desktop_LIB_SRCS})
generate_export_header(KF5IncidenceEditor BASE_NAME incidenceeditor)
add_library(KF5::IncidenceEditor ALIAS KF5IncidenceEditor)
+
+if (KDIAGRAM_SUPPORT)
+ set(grant_lib KGantt)
+else()
+ set(grant_lib KF5::KDGantt2)
+endif()
+
+
target_link_libraries(KF5IncidenceEditor
PUBLIC
KF5::AkonadiCalendar
@@ -103,7 +111,7 @@ PUBLIC
KF5::MailTransport
KF5::CalendarSupport # For KCalPrefs
KF5::EventViews
- KF5::KDGantt2 # For FreeBusy Editor
+ ${grant_lib} # For FreeBusy Editor
PRIVATE
KF5::Libkdepim
KF5::KdepimDBusInterfaces # For UriHandler