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

0001 
0002 add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_openxchange_resource\")
0003 
0004 set(openxchange_common_SRCS)
0005 kconfig_add_kcfg_files(openxchange_common_SRCS settings.kcfgc)    
0006 
0007 ################################ Resource ##################################
0008 
0009 set( openxchangeresource_SRCS
0010   oxa/contactutils.cpp
0011   oxa/davmanager.cpp
0012   oxa/davutils.cpp
0013   oxa/folder.cpp
0014   oxa/foldercreatejob.cpp
0015   oxa/folderdeletejob.cpp
0016   oxa/foldermodifyjob.cpp
0017   oxa/foldermovejob.cpp
0018   oxa/folderrequestjob.cpp
0019   oxa/foldersrequestdeltajob.cpp
0020   oxa/foldersrequestjob.cpp
0021   oxa/folderutils.cpp
0022   oxa/incidenceutils.cpp
0023   oxa/object.cpp
0024   oxa/objectcreatejob.cpp
0025   oxa/objectdeletejob.cpp
0026   oxa/objectmodifyjob.cpp
0027   oxa/objectmovejob.cpp
0028   oxa/objectrequestjob.cpp
0029   oxa/objectsrequestdeltajob.cpp
0030   oxa/objectsrequestjob.cpp
0031   oxa/objectutils.cpp
0032   oxa/oxutils.cpp
0033   oxa/oxerrors.cpp
0034   oxa/updateusersjob.cpp
0035   oxa/user.cpp
0036   oxa/users.cpp
0037   oxa/useridrequestjob.cpp
0038   oxa/usersrequestjob.cpp
0039 
0040   openxchangeresource.cpp
0041 
0042   oxa/contactutils.h
0043   oxa/davmanager.h
0044   oxa/davutils.h
0045   oxa/folder.h
0046   oxa/foldercreatejob.h
0047   oxa/folderdeletejob.h
0048   oxa/foldermodifyjob.h
0049   oxa/foldermovejob.h
0050   oxa/folderrequestjob.h
0051   oxa/foldersrequestdeltajob.h
0052   oxa/foldersrequestjob.h
0053   oxa/folderutils.h
0054   oxa/incidenceutils.h
0055   oxa/object.h
0056   oxa/objectcreatejob.h
0057   oxa/objectdeletejob.h
0058   oxa/objectmodifyjob.h
0059   oxa/objectmovejob.h
0060   oxa/objectrequestjob.h
0061   oxa/objectsrequestdeltajob.h
0062   oxa/objectsrequestjob.h
0063   oxa/objectutils.h
0064   oxa/oxutils.h
0065   oxa/oxerrors.h
0066   oxa/updateusersjob.h
0067   oxa/user.h
0068   oxa/users.h
0069   oxa/useridrequestjob.h
0070   oxa/usersrequestjob.h
0071 
0072   openxchangeresource.h
0073 
0074   ${openxchange_common_SRCS}
0075 )
0076 
0077 install( FILES openxchangeresource.desktop DESTINATION "${KDE_INSTALL_DATAROOTDIR}/akonadi/agents" )
0078 
0079 kcfg_generate_dbus_interface(${CMAKE_CURRENT_SOURCE_DIR}/openxchangeresource.kcfg org.kde.Akonadi.OpenXchange.Settings)
0080 qt_add_dbus_adaptor(openxchangeresource_SRCS
0081   ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.OpenXchange.Settings.xml settings.h Settings
0082 )
0083 
0084 add_executable(akonadi_openxchange_resource ${openxchangeresource_SRCS})
0085 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
0086     set_target_properties(akonadi_openxchange_resource PROPERTIES UNITY_BUILD ON)
0087 endif()
0088 
0089 if( APPLE )
0090   set_target_properties(akonadi_openxchange_resource PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/../Info.plist.template)
0091   set_target_properties(akonadi_openxchange_resource PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.Akonadi.OpenXchange")
0092   set_target_properties(akonadi_openxchange_resource PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "KDE Akonadi OpenXchange Resource")
0093 endif ()
0094 
0095 
0096 target_link_libraries(akonadi_openxchange_resource
0097     KPim6::AkonadiAgentBase
0098     KPim6::AkonadiCore
0099     KF6::Contacts
0100     KF6::KIOCore
0101     KF6::CalendarCore
0102     KPim6::AkonadiContactWidgets
0103     KF6::I18n
0104     Qt::Xml
0105 )
0106 
0107 install(TARGETS akonadi_openxchange_resource ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0108 
0109 install(
0110     FILES org.kde.akonadi_openxchange_resource.desktop
0111     DESTINATION ${KDE_INSTALL_APPDIR}
0112 )
0113 
0114 add_subdirectory(icons)
0115 
0116 ################################### Config plugin ############################
0117 kcoreaddons_add_plugin(openxchangeconfig
0118     INSTALL_NAMESPACE "pim6/akonadi/config"
0119 )
0120 
0121 target_sources(openxchangeconfig PRIVATE
0122   configwidget.cpp
0123   openxchangeconfig.cpp
0124   oxa/connectiontestjob.cpp
0125   configwidget.h
0126   oxa/connectiontestjob.h
0127   ${openxchange_common_SRCS}
0128 )
0129 
0130 ki18n_wrap_ui(openxchangeconfig configwidget.ui)
0131 
0132 
0133 target_link_libraries(openxchangeconfig
0134     KPim6::AkonadiCore
0135     KF6::I18n
0136     KF6::Completion
0137     KF6::ConfigWidgets
0138     KF6::KIOCore
0139 )