Warning, /pim/merkuro/src/calendar/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2022 Carl Schwan <carl@carlschwan.eu> 0002 # SPDX-License-Identifier: BSD-2-Clause 0003 0004 set(merkuro_calendar_SRCS 0005 remindersmodel.h 0006 remindersmodel.cpp 0007 utils.h 0008 utils.cpp 0009 0010 datetimestate.h 0011 datetimestate.cpp 0012 0013 calendarmanager.cpp 0014 calendarmanager.h 0015 calendarapplication.cpp 0016 calendarapplication.h 0017 filter.cpp 0018 filter.h 0019 incidencewrapper.cpp 0020 incidencewrapper.h 0021 mousetracker.cpp 0022 mousetracker.h 0023 0024 models/attachmentsmodel.cpp 0025 models/attachmentsmodel.h 0026 models/attendeesmodel.cpp 0027 models/attendeesmodel.h 0028 models/hourlyincidencemodel.cpp 0029 models/hourlyincidencemodel.h 0030 models/incidenceoccurrencemodel.cpp 0031 models/incidenceoccurrencemodel.h 0032 models/infinitecalendarviewmodel.cpp 0033 models/infinitecalendarviewmodel.h 0034 models/itemtagsmodel.cpp 0035 models/itemtagsmodel.h 0036 models/monthmodel.cpp 0037 models/monthmodel.h 0038 models/multidayincidencemodel.cpp 0039 models/multidayincidencemodel.h 0040 models/recurrenceexceptionsmodel.cpp 0041 models/recurrenceexceptionsmodel.h 0042 models/timezonelistmodel.cpp 0043 models/timezonelistmodel.h 0044 models/todosortfilterproxymodel.cpp 0045 models/todosortfilterproxymodel.h 0046 ) 0047 0048 ecm_qt_declare_logging_category(merkuro_calendar_SRCS 0049 HEADER merkuro_calendar_debug.h 0050 IDENTIFIER "MERKURO_CALENDAR_LOG" 0051 CATEGORY_NAME org.kde.merkuro.calendar 0052 DESCRIPTION "merkuro calendar" 0053 EXPORT MERKURO 0054 ) 0055 0056 qt_add_dbus_adaptor(merkuro_calendar_SRCS org.kde.calendar.Calendar.xml calendarapplication.h CalendarApplication) 0057 0058 add_library(merkuro_calendar_static STATIC ${merkuro_calendar_SRCS}) 0059 kconfig_add_kcfg_files(merkuro_calendar_static GENERATE_MOC calendarconfig.kcfgc) 0060 set_target_properties(merkuro_calendar_static PROPERTIES POSITION_INDEPENDENT_CODE ON) 0061 target_link_libraries(merkuro_calendar_static PUBLIC 0062 merkuro_lib 0063 KF6::WindowSystem 0064 ) 0065 0066 0067 ecm_add_qml_module(merkuro_calendar_plugin URI "org.kde.merkuro.calendar" VERSION 1.0) 0068 0069 target_sources(merkuro_calendar_plugin PRIVATE 0070 calendarplugin.cpp 0071 calendarplugin.h 0072 ) 0073 0074 set_source_files_properties(models/todosortfilterproxymodel.cpp PROPERTIES SKIP_UNITY_BUILD_INCLUSION ON) 0075 0076 ecm_target_qml_sources(merkuro_calendar_plugin SOURCES 0077 qml/incidenceeditor/ReminderDelegate.qml 0078 qml/incidenceeditor/PriorityComboBox.qml 0079 qml/BottomToolBar.qml 0080 qml/Menus/MenuBar.qml 0081 ) 0082 0083 target_link_libraries(merkuro_calendar_plugin PUBLIC merkuro_calendar_static) 0084 0085 ecm_finalize_qml_module(merkuro_calendar_plugin 0086 DESTINATION ${KDE_INSTALL_QMLDIR} 0087 BUILD_SHARED_LIBS ON) 0088 0089 if (BUILD_TESTING) 0090 add_subdirectory(autotests) 0091 endif() 0092 0093 #### Binary 0094 0095 add_executable(merkuro-calendar 0096 main.cpp 0097 importer.h 0098 importer.cpp 0099 resources.qrc 0100 ) 0101 target_link_libraries(merkuro-calendar 0102 PRIVATE 0103 merkuro_calendar_static 0104 Qt::Widgets 0105 Qt::Quick 0106 Qt::QuickControls2 0107 KF6::I18n 0108 KF6::CoreAddons 0109 KF6::DBusAddons 0110 KF6::WindowSystem 0111 KF6::ConfigGui 0112 ) 0113 install(TARGETS merkuro-calendar ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 0114 install(PROGRAMS org.kde.merkuro.calendar.desktop DESTINATION ${KDE_INSTALL_APPDIR}) 0115 install(FILES org.kde.merkuro.calendar.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR})