Warning, /pim/kdepim-addons/plugins/plasma/pimeventsplugin/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: none
0002 # SPDX-License-Identifier: BSD-3-Clause
0003 
0004 add_definitions (-DTRANSLATION_DOMAIN=\"pimeventsplugin\")
0005 if (BUILD_TESTING)
0006     add_subdirectory(autotests)
0007 endif()
0008 ecm_qt_declare_logging_category(loggingcategory_SRCS
0009     HEADER pimeventsplugin_debug.h
0010     IDENTIFIER PIMEVENTSPLUGIN_LOG
0011     CATEGORY_NAME org.kde.pim.pimeventsplugin
0012     DESCRIPTION "kdepim-addons (Plasma calendar plugin)"
0013     OLD_CATEGORY_NAMES log_pimeventsplugin
0014     EXPORT KDEPIMADDONS
0015     )
0016 
0017 kcoreaddons_add_plugin(pimevents INSTALL_NAMESPACE plasmacalendarplugins)
0018 target_sources(pimevents PRIVATE
0019     pimeventsplugin.cpp
0020     akonadipimdatasource.cpp
0021     eventdatavisitor.cpp
0022     settingschangenotifier.cpp
0023     eventmodel.cpp
0024     ${loggingcategory_SRCS}
0025     pimeventsplugin.h
0026     akonadipimdatasource.h
0027     eventdatavisitor.h
0028     settingschangenotifier.h
0029     eventmodel.h
0030     )
0031 
0032 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
0033     set_target_properties(pimevents PROPERTIES UNITY_BUILD ON)
0034 endif()
0035 
0036 target_link_libraries(pimevents
0037     Qt::Core
0038     KPim6::AkonadiCore
0039     KPim6::AkonadiCalendar
0040     KF6::CalendarCore
0041     KF6::CalendarEvents
0042     KPim6::EventViews # for reading KOrganizer calendar colors
0043     KF6::ConfigCore
0044     KF6::KIOCore
0045     )
0046 
0047 
0048 
0049 ######################### NEXT TARGET #######################33
0050 
0051 add_library(pimcalendarsplugin SHARED)
0052 
0053 target_sources(pimcalendarsplugin PRIVATE
0054     pimcalendarsplugin.cpp
0055     pimcalendarsmodel.cpp
0056     settingschangenotifier.cpp
0057     ${loggingcategory_SRCS}
0058     pimcalendarsmodel.h
0059     settingschangenotifier.h
0060     )
0061 target_link_libraries(pimcalendarsplugin
0062     Qt::Core
0063     Qt::Qml
0064     KPim6::AkonadiCore
0065     KF6::CalendarCore
0066     KF6::ConfigCore
0067     )
0068 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
0069     set_target_properties(pimcalendarsplugin PROPERTIES UNITY_BUILD ON)
0070 endif()
0071 install(TARGETS pimcalendarsplugin
0072     DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/PimCalendars
0073     )
0074 install(FILES qmldir
0075     DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/PimCalendars
0076     )
0077 install(FILES PimEventsConfig.qml
0078     DESTINATION ${KDE_INSTALL_PLUGINDIR}/plasmacalendarplugins/pimevents
0079     )