summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-16 10:55:09 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-16 12:10:20 (GMT)
commit5aee3f02c1051d0cfe714b45e4074b4195d3851b (patch)
tree30946de88cc9a26005e922a2fd7327c16694eab8
parent714e13e107382e926827ccbd68585277fb49ae93 (diff)
Port plasma to macro too
-rw-r--r--plugins/plasma/pimeventsplugin/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/plasma/pimeventsplugin/CMakeLists.txt b/plugins/plasma/pimeventsplugin/CMakeLists.txt
index 79efc17..2c6829c 100644
--- a/plugins/plasma/pimeventsplugin/CMakeLists.txt
+++ b/plugins/plasma/pimeventsplugin/CMakeLists.txt
@@ -15,7 +15,10 @@ ecm_qt_declare_logging_category(loggingcategory_SRCS
CATEGORY_NAME log_pimeventsplugin
)
-add_library(pimevents MODULE ${pimeventsplugin_SRCS} ${loggingcategory_SRCS})
+set(pimeventsplugins_full_SRCS ${pimeventsplugin_SRCS} ${loggingcategory_SRCS})
+kcoreaddons_add_plugin(pimevents JSON pimeventsplugin.json SOURCES
+ ${pimeventsplugins_full_SRCS} INSTALL_NAMESPACE plasmacalendarplugins)
+
target_link_libraries(pimevents
Qt5::Core
KF5::AkonadiCore
@@ -25,9 +28,6 @@ target_link_libraries(pimevents
KF5::EventViews # for reading KOrganizer calendar colors
)
-install(TARGETS pimevents
- DESTINATION ${PLUGIN_INSTALL_DIR}/plasmacalendarplugins
-)
######################### NEXT TARGET #######################33