Warning, /pim/kdepim-runtime/resources/ical/notes/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 include_directories(
0002     ${CMAKE_CURRENT_SOURCE_DIR}/../shared
0003     ${kdepim-runtime_SOURCE_DIR}
0004 )
0005 
0006 set(notesresource_common_SRCS)
0007 kconfig_add_kcfg_files(notesresource_common_SRCS settings.kcfgc)
0008 
0009 ############################## Resource #################################
0010 
0011 add_definitions( -DSETTINGS_NAMESPACE=Akonadi_Aknotes_Resource )
0012 add_executable(akonadi_notes_resource)
0013 
0014 
0015 install( FILES notesresource.desktop DESTINATION "${KDE_INSTALL_DATAROOTDIR}/akonadi/agents" )
0016 
0017 kcfg_generate_dbus_interface(${CMAKE_CURRENT_SOURCE_DIR}/notesresource.kcfg org.kde.Akonadi.Notes.Settings)
0018 qt_add_dbus_adaptor(notesresource_SRCS
0019   ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.Notes.Settings.xml settings.h Akonadi_Aknotes_Resource::Settings icalsettingsadaptor ICalSettingsAdaptor
0020 )
0021 target_sources( akonadi_notes_resource PRIVATE
0022   ../shared/icalresourcebase.cpp
0023   ../shared/icalresource.cpp
0024   notesresource.cpp
0025   ../shared/icalresourcebase.h
0026   ../shared/icalresource.h
0027   notesresource.h
0028   ${notesresource_common_SRCS}
0029   ${notesresource_SRCS}
0030 )
0031 
0032 
0033 target_link_libraries(akonadi_notes_resource KPim6::AkonadiCore  KF6::KIOCore KF6::CalendarCore KPim6::AkonadiAgentBase akonadi-singlefileresource)
0034 
0035 install(TARGETS akonadi_notes_resource ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0036 
0037 
0038 ############################ Config plugin ##################################
0039 
0040 kcoreaddons_add_plugin(notesconfig
0041     INSTALL_NAMESPACE "pim6/akonadi/config"
0042 )
0043 target_sources(notesconfig PRIVATE notesconfig.cpp ${notesresource_common_SRCS})
0044 
0045 target_link_libraries(notesconfig
0046     KPim6::AkonadiCore
0047     akonadi-singlefileresource
0048 )