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

0001 add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_davgroupware_resource\")
0002 
0003 if(WIN32)
0004     set(LIB_INSTALL_DIR ${KDE_INSTALL_LIBDIR}
0005         RUNTIME DESTINATION ${KDE_INSTALL_BINDIR}
0006         LIBRARY DESTINATION ${KDE_INSTALL_LIBDIR}
0007         ARCHIVE DESTINATION ${KDE_INSTALL_LIBDIR} )
0008 endif()
0009 
0010 ########### next target ###############
0011 set(davgroupwareresource_common_SRCS)
0012 kconfig_add_kcfg_files(davgroupwareresource_common_SRCS settingsbase.kcfgc)
0013 
0014 set(davgroupwareconfig_SRCS
0015     configdialog.cpp
0016     searchdialog.cpp
0017     setupwizard.cpp
0018     configdialog.h
0019     searchdialog.h
0020     setupwizard.h
0021 
0022     )
0023 ki18n_wrap_ui(davgroupwareconfig_SRCS configdialog.ui urlconfigurationdialog.ui searchdialog.ui)
0024 
0025 
0026 set( davgroupwareresource_SRCS
0027     ${davgroupwareresource_common_SRCS}
0028     ${davgroupwareconfig_SRCS}
0029     daverror-kdepim-runtime.cpp
0030     akonadietagcache.cpp
0031     utils.cpp
0032 
0033     ctagattribute.cpp
0034     davfreebusyhandler.cpp
0035     davprotocolattribute.cpp
0036     settings.cpp
0037     urlconfigurationdialog.cpp
0038     davgroupwareresource.cpp
0039     daverror-kdepim-runtime.h
0040     akonadietagcache.h
0041     utils.h
0042 
0043     ctagattribute.h
0044     davfreebusyhandler.h
0045     davprotocolattribute.h
0046     settings.h
0047     urlconfigurationdialog.h
0048     davgroupwareresource.h
0049     )
0050 
0051 ecm_qt_declare_logging_category(davgroupwareresource_SRCS HEADER davresource_debug.h IDENTIFIER DAVRESOURCE_LOG CATEGORY_NAME org.kde.pim.davresource
0052     DESCRIPTION "dav resource (kdepim-runtime)"
0053     OLD_CATEGORY_NAMES log_davresource
0054     EXPORT KDEPIMRUNTIME
0055     )
0056 
0057 
0058 install( FILES davgroupwareresource.desktop DESTINATION "${KDE_INSTALL_DATAROOTDIR}/akonadi/agents" )
0059 install( FILES org.kde.akonadi_davgroupware_resource.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
0060 
0061 file( GLOB providersFiles "../services/*.desktop" )
0062 install( FILES ${providersFiles} DESTINATION "${KDE_INSTALL_DATADIR}/akonadi/davgroupware-providers" )
0063 
0064 kcfg_generate_dbus_interface(${CMAKE_CURRENT_SOURCE_DIR}/davgroupwareresource.kcfg org.kde.Akonadi.davGroupware.Settings)
0065 qt_add_dbus_adaptor(davgroupwareresource_SRCS
0066     ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.davGroupware.Settings.xml settings.h Settings
0067     )
0068 
0069 add_executable(akonadi_davgroupware_resource ${davgroupwareresource_SRCS})
0070 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
0071     set_target_properties(akonadi_davgroupware_resource PROPERTIES UNITY_BUILD ON)
0072 endif()
0073 
0074 if( APPLE )
0075     set_target_properties(akonadi_davgroupware_resource PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/../../Info.plist.template)
0076     set_target_properties(akonadi_davgroupware_resource PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.Akonadi.davGroupware")
0077     set_target_properties(akonadi_davgroupware_resource PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "KDE Akonadi davGroupware Resource")
0078 endif ()
0079 
0080 target_link_libraries(akonadi_davgroupware_resource
0081     KF6::Contacts
0082     KPim6::AkonadiCalendar
0083     KF6::KIOCore
0084     KPim6::AkonadiAgentBase
0085     KPim6::AkonadiCore
0086     KF6::CalendarCore
0087     KF6::Completion
0088     KF6::ConfigCore
0089     KF6::ConfigWidgets
0090     KF6::WindowSystem
0091     KF6::DAV
0092     KF6::Service
0093     Qt::Xml
0094     qt6keychain
0095     )
0096 
0097 install(TARGETS akonadi_davgroupware_resource ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0098