Warning, /pim/kdepim-runtime/resources/birthdays/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_birthdays_resource\") 0002 0003 set(birthdayresource_common_SRCS) 0004 0005 kconfig_add_kcfg_files(birthdayresource_common_SRCS 0006 settings.kcfgc 0007 ) 0008 0009 set( birthdayresource_srcs 0010 birthdaysresource.cpp 0011 birthdaysresource.h 0012 ${birthdayresource_common_SRCS} 0013 ) 0014 0015 0016 kcfg_generate_dbus_interface(${CMAKE_CURRENT_SOURCE_DIR}/birthdaysresource.kcfg org.kde.Akonadi.Birthdays.Settings) 0017 0018 qt_add_dbus_adaptor(birthdayresource_srcs 0019 ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.Birthdays.Settings.xml settings.h Settings 0020 ) 0021 0022 ecm_qt_declare_logging_category(birthdayresource_srcs HEADER birthdays_debug.h IDENTIFIER BIRTHDAYS_LOG CATEGORY_NAME org.kde.pim.birthdays 0023 DESCRIPTION "birthdays resource (kdepim-runtime)" 0024 OLD_CATEGORY_NAMES log_birthdays 0025 EXPORT KDEPIMRUNTIME 0026 ) 0027 0028 0029 0030 add_executable(akonadi_birthdays_resource ${birthdayresource_srcs}) 0031 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT) 0032 set_target_properties(akonadi_birthdays_resource PROPERTIES UNITY_BUILD ON) 0033 endif() 0034 0035 if( APPLE ) 0036 set_target_properties(akonadi_birthdays_resource PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/../Info.plist.template) 0037 set_target_properties(akonadi_birthdays_resource PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.Akonadi.Birthdays") 0038 set_target_properties(akonadi_birthdays_resource PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "KDE Akonadi Birthdays Resource") 0039 endif () 0040 0041 target_link_libraries(akonadi_birthdays_resource 0042 KPim6::AkonadiCore 0043 KF6::CalendarCore 0044 KPim6::AkonadiAgentBase 0045 KF6::Contacts 0046 KPim6::AkonadiWidgets 0047 KF6::I18n 0048 KF6::Codecs 0049 ) 0050 0051 install( TARGETS akonadi_birthdays_resource ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ) 0052 install( FILES birthdaysresource.desktop DESTINATION "${KDE_INSTALL_DATAROOTDIR}/akonadi/agents" ) 0053 0054 0055 ############################# Config plugin ################################ 0056 kcoreaddons_add_plugin(birthdaysconfig 0057 INSTALL_NAMESPACE "pim6/akonadi/config" 0058 ) 0059 ki18n_wrap_ui(birthdaysconfig birthdaysconfigwidget.ui) 0060 target_sources(birthdaysconfig PRIVATE 0061 birthdaysconfigagentwidget.cpp 0062 birthdaysconfigagentwidget.h 0063 ${birthdayresource_common_SRCS} 0064 ) 0065 0066 target_link_libraries(birthdaysconfig 0067 KPim6::AkonadiCore 0068 KF6::CalendarCore 0069 KF6::Contacts 0070 KPim6::AkonadiWidgets 0071 KF6::I18n 0072 KF6::TextWidgets 0073 )