Warning, /pim/kalarm/src/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 include_directories(
0002     ${CMAKE_CURRENT_BINARY_DIR}
0003     ${CMAKE_CURRENT_SOURCE_DIR}/
0004 )
0005 
0006 add_subdirectory(kalarmcalendar)
0007 if (ENABLE_AKONADI_PLUGIN)
0008     add_subdirectory(akonadiplugin)
0009 endif()
0010 add_subdirectory(icons)
0011 add_subdirectory(autostart)
0012 
0013 ########### next target ###############
0014 
0015 
0016 add_library(kalarmplugin)
0017 
0018 ecm_qt_declare_logging_category(kalarmplugin
0019                                 HEADER kalarmpluginlib_debug.h
0020                                 IDENTIFIER KALARMPLUGINLIB_LOG
0021                                 CATEGORY_NAME org.kde.pim.kalarm.pluginlib
0022                                 DESCRIPTION "kalarm (pluginlib)"
0023                                 EXPORT KALARMPLUGINLIB
0024                                 )
0025 target_sources(kalarmplugin PRIVATE
0026     pluginbase.cpp
0027     pluginmanager.cpp
0028     pluginbase.h
0029     pluginmanager.h
0030 )
0031 generate_export_header(kalarmplugin BASE_NAME kalarmpluginlib)
0032 
0033 target_link_libraries(kalarmplugin PRIVATE
0034     kalarmcalendar
0035     KF6::CoreAddons
0036     KF6::CalendarCore
0037     KPim6::Mime
0038 )
0039 
0040 target_include_directories(kalarmplugin PUBLIC "$<BUILD_INTERFACE:${kalarm_SOURCE_DIR}/src/kalarmcalendar;${kalarm_BINARY_DIR}/src/kalarmcalendar>")
0041 
0042 set_target_properties(kalarmplugin
0043     PROPERTIES VERSION ${KDEPIM_LIB_VERSION}
0044     SOVERSION ${KDEPIM_LIB_SOVERSION}
0045     )
0046 
0047 install(TARGETS kalarmplugin ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
0048 
0049 
0050 ########### next target ###############
0051 
0052 set(libkalarm_common_SRCS)
0053 
0054 ecm_qt_declare_logging_category(libkalarm_common_SRCS
0055                                 HEADER kalarm_debug.h
0056                                 IDENTIFIER KALARM_LOG
0057                                 CATEGORY_NAME org.kde.pim.kalarm
0058                                 DEFAULT_SEVERITY Warning
0059                                 DESCRIPTION "kalarm (kalarm)"
0060                                 OLD_CATEGORY_NAMES log_kalarm
0061                                 EXPORT KALARM
0062                                 )
0063 
0064 set(libkalarm_SRCS
0065     lib/buttongroup.cpp
0066     lib/checkbox.cpp
0067     lib/colourbutton.cpp
0068     lib/combobox.cpp
0069     lib/config.cpp
0070     lib/desktop.cpp
0071     lib/dragdrop.cpp
0072     lib/file.cpp
0073     lib/filedialog.cpp
0074     lib/groupbox.cpp
0075     lib/label.cpp
0076     lib/locale.cpp
0077     lib/messagebox.cpp
0078     lib/packedlayout.cpp
0079     lib/pushbutton.cpp
0080     lib/radiobutton.cpp
0081     lib/timeedit.cpp
0082     lib/timespinbox.cpp
0083     lib/timeperiod.cpp
0084     lib/timezonecombo.cpp
0085     lib/shellprocess.cpp
0086     lib/slider.cpp
0087     lib/spinbox.cpp
0088     lib/spinbox2.cpp
0089     lib/stackedwidgets.cpp
0090     lib/lineedit.cpp
0091     lib/synchtimer.cpp
0092     lib/buttongroup.h
0093     lib/checkbox.h
0094     lib/colourbutton.h
0095     lib/combobox.h
0096     lib/config.h
0097     lib/desktop.h
0098     lib/dragdrop.h
0099     lib/file.h
0100     lib/filedialog.h
0101     lib/groupbox.h
0102     lib/label.h
0103     lib/locale.h
0104     lib/messagebox.h
0105     lib/packedlayout.h
0106     lib/pushbutton.h
0107     lib/radiobutton.h
0108     lib/timeedit.h
0109     lib/timespinbox.h
0110     lib/timeperiod.h
0111     lib/timezonecombo.h
0112     lib/shellprocess.h
0113     lib/slider.h
0114     lib/spinbox.h
0115     lib/spinbox2.h
0116     lib/stackedwidgets.h
0117     lib/lineedit.h
0118     lib/synchtimer.h
0119    )
0120 set(resources_SRCS
0121     resources/calendarfunctions.cpp
0122     resources/resourcetype.cpp
0123     resources/resource.cpp
0124     resources/resources.cpp
0125     resources/resourcedatamodelbase.cpp
0126     resources/resourcemodel.cpp
0127     resources/resourceselectdialog.cpp
0128     resources/resourcecreator.cpp
0129     resources/eventmodel.cpp
0130     resources/datamodel.cpp
0131     resources/calendarupdater.cpp
0132     resources/fileresource.cpp
0133     resources/fileresourceconfigmanager.cpp
0134     resources/fileresourcecreator.cpp
0135     resources/fileresourcedatamodel.cpp
0136     resources/fileresourcesettings.cpp
0137     resources/fileresourcecalendarupdater.cpp
0138     resources/singlefileresource.cpp
0139     resources/singlefileresourceconfigdialog.cpp
0140     resources/migration/dirresourceimportdialog.cpp
0141     resources/migration/fileresourcemigrator.cpp
0142     resources/calendarfunctions.h
0143     resources/resourcetype.h
0144     resources/resource.h
0145     resources/resources.h
0146     resources/resourcedatamodelbase.h
0147     resources/resourcemodel.h
0148     resources/resourceselectdialog.h
0149     resources/resourcecreator.h
0150     resources/eventmodel.h
0151     resources/datamodel.h
0152     resources/calendarupdater.h
0153     resources/fileresource.h
0154     resources/fileresourceconfigmanager.h
0155     resources/fileresourcecreator.h
0156     resources/fileresourcedatamodel.h
0157     resources/fileresourcesettings.h
0158     resources/fileresourcecalendarupdater.h
0159     resources/singlefileresource.h
0160     resources/singlefileresourceconfigdialog.h
0161     resources/migration/dirresourceimportdialog.h
0162     resources/migration/fileresourcemigrator.h
0163    )
0164 
0165 set(kalarm_bin_SRCS ${libkalarm_SRCS} ${resources_SRCS}
0166     ${libkalarm_common_SRCS}
0167     data/kalarm.qrc
0168     main.cpp
0169     birthdaydlg.cpp
0170     editdlg.cpp
0171     editdlgtypes.cpp
0172     soundpicker.cpp
0173     sounddlg.cpp
0174     displaycalendar.cpp
0175     resourcescalendar.cpp
0176     undo.cpp
0177     kalarmapp.cpp
0178     mainwindowbase.cpp
0179     mainwindow.cpp
0180     messagedisplay.cpp
0181     messagedisplayhelper.cpp
0182     messagenotification.cpp
0183     messagewindow.cpp
0184     preferences.cpp
0185     prefdlg.cpp
0186     traywindow.cpp
0187     dbushandler.cpp
0188     recurrenceedit.cpp
0189     deferdlg.cpp
0190     eventid.cpp
0191     functions.cpp
0192     fontcolour.cpp
0193     fontcolourbutton.cpp
0194     alarmtimewidget.cpp
0195     specialactions.cpp
0196     reminder.cpp
0197     startdaytimer.cpp
0198     eventlistview.cpp
0199     alarmlistdelegate.cpp
0200     alarmlistview.cpp
0201     templatelistview.cpp
0202     kamail.cpp
0203     kernelwakealarm.cpp
0204     timeselector.cpp
0205     latecancel.cpp
0206     repetitionbutton.cpp
0207     emailidcombo.cpp
0208     find.cpp
0209     pickfileradio.cpp
0210     newalarmaction.cpp
0211     commandoptions.cpp
0212     resourceselector.cpp
0213     datepicker.cpp
0214     daymatrix.cpp
0215     templatepickdlg.cpp
0216     templatedlg.cpp
0217     templatemenuaction.cpp
0218     birthdaydlg.h
0219     editdlg.h
0220     editdlgtypes.h
0221     soundpicker.h
0222     sounddlg.h
0223     displaycalendar.h
0224     resourcescalendar.h
0225     undo.h
0226     kalarmapp.h
0227     mainwindowbase.h
0228     mainwindow.h
0229     messagedisplay.h
0230     messagedisplayhelper.h
0231     messagenotification.h
0232     messagewindow.h
0233     preferences.h
0234     prefdlg.h
0235     traywindow.h
0236     dbushandler.h
0237     recurrenceedit.h
0238     deferdlg.h
0239     eventid.h
0240     functions.h
0241     fontcolour.h
0242     fontcolourbutton.h
0243     alarmtimewidget.h
0244     specialactions.h
0245     reminder.h
0246     startdaytimer.h
0247     eventlistview.h
0248     alarmlistdelegate.h
0249     alarmlistview.h
0250     templatelistview.h
0251     kamail.h
0252     kernelwakealarm.h
0253     timeselector.h
0254     latecancel.h
0255     repetitionbutton.h
0256     emailidcombo.h
0257     find.h
0258     pickfileradio.h
0259     newalarmaction.h
0260     commandoptions.h
0261     resourceselector.h
0262     datepicker.h
0263     daymatrix.h
0264     templatepickdlg.h
0265     templatedlg.h
0266     templatemenuaction.h
0267 )
0268 if (ENABLE_RTC_WAKE_FROM_SUSPEND)
0269     set(kalarm_bin_SRCS ${kalarm_bin_SRCS}
0270         wakedlg.cpp
0271         wakedlg.h
0272     )
0273 endif()
0274 
0275 ki18n_wrap_ui(kalarm_bin_SRCS
0276     wakedlg.ui
0277     resources/singlefileresourceconfigdialog.ui
0278     resources/migration/dirresourceimportdialog_intro.ui
0279     resources/migration/dirresourceimportdialog_type.ui
0280 )
0281 
0282 qt_add_dbus_adaptor(kalarm_bin_SRCS data/org.kde.kalarm.kalarm.xml dbushandler.h DBusHandler)
0283 
0284 qt_add_dbus_interfaces(kalarm_bin_SRCS data/org.kde.kmail.kmail.xml)
0285 
0286 qt_add_dbus_interface(kalarm_bin_SRCS data/org.freedesktop.Notifications.xml notifications_interface)
0287 qt_add_dbus_interface(kalarm_bin_SRCS data/org.freedesktop.DBus.Properties.xml dbusproperties)
0288 qt_add_dbus_interface(kalarm_bin_SRCS data/org.freedesktop.ScreenSaver.xml screensaver)
0289 
0290 kconfig_add_kcfg_files(kalarm_bin_SRCS GENERATE_MOC data/kalarmconfig.kcfgc)
0291 
0292 #if (UNIX)
0293 file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/icons/hicolor/*-apps-kalarm.png")
0294 ecm_add_app_icon(kalarm_bin_SRCS ICONS ${ICONS_SRCS})
0295 add_executable(kalarm_bin ${kalarm_bin_SRCS})
0296 
0297 set_target_properties(kalarm_bin PROPERTIES OUTPUT_NAME kalarm)
0298 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
0299     set_target_properties(kalarm_bin PROPERTIES UNITY_BUILD ON)
0300 endif()
0301 
0302 target_compile_definitions(kalarm_bin PRIVATE -DVERSION="${KALARM_VERSION}")
0303 
0304 
0305 target_link_libraries(kalarm_bin
0306     kalarmcalendar
0307     kalarmplugin
0308     KF6::Codecs
0309     KF6::ConfigCore
0310     KF6::Completion
0311     KF6::DBusAddons
0312     KF6::GlobalAccel
0313     KF6::GuiAddons
0314     KF6::Holidays
0315     KF6::ItemModels
0316     KF6::KIOWidgets
0317     KF6::Notifications
0318     KF6::NotifyConfig
0319     KF6::TextWidgets
0320     KF6::WindowSystem
0321     KF6::XmlGui
0322     KF6::KIOFileWidgets
0323     KF6::Crash
0324     KF6::StatusNotifierItem
0325     Phonon::phonon4qt6
0326     KF6::CalendarCore
0327     KPim6::CalendarUtils
0328     KF6::Contacts
0329     KPim6::IdentityManagementWidgets
0330     KPim6::Mime
0331 )
0332     target_link_libraries(kalarm_bin Qt6::Core5Compat)
0333 if (TARGET KF6::TextEditTextToSpeech)
0334     target_link_libraries(kalarm_bin KF6::TextEditTextToSpeech)
0335 endif()
0336 
0337 if (ENABLE_RTC_WAKE_FROM_SUSPEND)
0338     target_link_libraries(kalarm_bin KF6::AuthCore)
0339 endif()
0340 
0341 if (ENABLE_X11)
0342     target_link_libraries(kalarm_bin ${X11_X11_LIB})
0343 endif()
0344 
0345 install(TARGETS kalarm_bin ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0346 #endif (UNIX)
0347 
0348 ########### install files ###############
0349 
0350 install(FILES data/org.kde.kalarm.desktop  DESTINATION ${KDE_INSTALL_APPDIR})
0351 install(FILES data/kalarm.autostart.desktop DESTINATION ${KDE_INSTALL_AUTOSTARTDIR})
0352 install(FILES data/org.kde.kalarm.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0353 
0354 install(FILES data/kalarmconfig.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
0355 install(FILES data/org.kde.kalarm.kalarm.xml DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR})
0356 install(FILES data/kalarm.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFYRCDIR})
0357 
0358 ########### KAuth helper ###############
0359 
0360 if (ENABLE_RTC_WAKE_FROM_SUSPEND)
0361     add_executable(kalarm_helper rtcwakeaction.cpp rtcwakeaction.h ${libkalarm_common_SRCS})
0362     target_link_libraries(kalarm_helper KF6::AuthCore KF6::I18n)
0363     install(TARGETS kalarm_helper DESTINATION ${KAUTH_HELPER_INSTALL_DIR})
0364     kauth_install_helper_files(kalarm_helper org.kde.kalarm.rtcwake root)
0365     kauth_install_actions(org.kde.kalarm.rtcwake data/org.kde.kalarm.rtcwake.actions)
0366 endif()