Warning, /pim/kdepim-runtime/resources/imap/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_imap_resource\") 0002 0003 set(WITH_GMAIL_XOAUTH2 TRUE) 0004 0005 configure_file(config-imap.h.in ${CMAKE_CURRENT_BINARY_DIR}/config-imap.h) 0006 0007 ########### next target ############### 0008 0009 set( imapresource_LIB_SRCS 0010 addcollectiontask.cpp 0011 additemtask.cpp 0012 batchfetcher.cpp 0013 changecollectiontask.cpp 0014 changeitemsflagstask.cpp 0015 changeitemtask.cpp 0016 expungecollectiontask.cpp 0017 highestmodseqattribute.cpp 0018 imapaccount.cpp 0019 imapflags.cpp 0020 imapresourcebase.cpp 0021 messagehelper.cpp 0022 movecollectiontask.cpp 0023 moveitemstask.cpp 0024 noselectattribute.cpp 0025 noinferiorsattribute.cpp 0026 passwordrequesterinterface.cpp 0027 removecollectionrecursivetask.cpp 0028 resourcestateinterface.cpp 0029 resourcetask.cpp 0030 retrievecollectionmetadatatask.cpp 0031 retrievecollectionstask.cpp 0032 retrieveitemtask.cpp 0033 retrieveitemstask.cpp 0034 searchtask.cpp 0035 sessionpool.cpp 0036 uidvalidityattribute.cpp 0037 uidnextattribute.cpp 0038 settings.cpp 0039 subscriptiondialog.cpp 0040 imapidlemanager.cpp 0041 resourcestate.cpp 0042 collectionmetadatahelper.cpp 0043 replacemessagejob.cpp 0044 0045 addcollectiontask.h 0046 additemtask.h 0047 batchfetcher.h 0048 changecollectiontask.h 0049 changeitemsflagstask.h 0050 changeitemtask.h 0051 expungecollectiontask.h 0052 highestmodseqattribute.h 0053 imapaccount.h 0054 imapflags.h 0055 imapresourcebase.h 0056 messagehelper.h 0057 movecollectiontask.h 0058 moveitemstask.h 0059 noselectattribute.h 0060 noinferiorsattribute.h 0061 passwordrequesterinterface.h 0062 removecollectionrecursivetask.h 0063 resourcestateinterface.h 0064 resourcetask.h 0065 retrievecollectionmetadatatask.h 0066 retrievecollectionstask.h 0067 retrieveitemtask.h 0068 retrieveitemstask.h 0069 searchtask.h 0070 sessionpool.h 0071 uidvalidityattribute.h 0072 uidnextattribute.h 0073 settings.h 0074 subscriptiondialog.h 0075 imapidlemanager.h 0076 resourcestate.h 0077 collectionmetadatahelper.h 0078 replacemessagejob.h 0079 ${AKONADI_COLLECTIONATTRIBUTES_SHARED_SOURCES} 0080 ${AKONADI_IMAPATTRIBUTES_SHARED_SOURCES} 0081 ) 0082 0083 ecm_qt_declare_logging_category(imapresource_LIB_SRCS HEADER imapresource_debug.h IDENTIFIER IMAPRESOURCE_LOG CATEGORY_NAME org.kde.pim.imapresource 0084 DESCRIPTION "imap resource (kdepim-runtime)" 0085 OLD_CATEGORY_NAMES log_imapresource 0086 EXPORT KDEPIMRUNTIME 0087 ) 0088 ecm_qt_declare_logging_category(imapresource_LIB_SRCS HEADER imapresource_trace.h 0089 IDENTIFIER IMAPRESOURCE_TRACE 0090 CATEGORY_NAME org.kde.pim.imapresource.trace 0091 DESCRIPTION "resource kolab trace (kdepim-runtime)" 0092 EXPORT KDEPIMRUNTIME 0093 ) 0094 0095 kcfg_generate_dbus_interface( ${CMAKE_CURRENT_SOURCE_DIR}/imapresource.kcfg org.kde.Akonadi.Imap.Settings ) 0096 kconfig_add_kcfg_files(imapresource_LIB_SRCS settingsbase.kcfgc) 0097 0098 qt_add_dbus_adaptor( imapresource_LIB_SRCS 0099 ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.Imap.Settings.xml settings.h Settings 0100 ) 0101 0102 qt_generate_dbus_interface( ${CMAKE_CURRENT_SOURCE_DIR}/imapresourcebase.h org.kde.Akonadi.Imap.Resource.xml OPTIONS -a ) 0103 qt_add_dbus_adaptor( imapresource_LIB_SRCS 0104 ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.Imap.Resource.xml 0105 imapresourcebase.h ImapResourceBase 0106 ) 0107 0108 add_library(imapresource STATIC ${imapresource_LIB_SRCS}) 0109 0110 target_link_libraries(imapresource 0111 Qt::DBus 0112 Qt::Network 0113 KPim6::AkonadiCore 0114 KPim6::IMAP 0115 KPim6::MailTransport 0116 KF6::KIOWidgets 0117 KPim6::Mime 0118 KPim6::AkonadiMime 0119 KPim6::IdentityManagementWidgets 0120 KPim6::AkonadiAgentBase 0121 KF6::I18n 0122 KF6::WindowSystem 0123 KF6::ConfigGui 0124 KF6::Wallet 0125 akonadi-singlefileresource 0126 qt6keychain 0127 ) 0128 0129 ########### next target ############### 0130 0131 add_executable(akonadi_imap_resource) 0132 ki18n_wrap_ui(akonadi_imap_resource setupserverview_desktop.ui) 0133 target_sources( akonadi_imap_resource PRIVATE 0134 main.cpp 0135 imapresource.cpp 0136 resourcestate.cpp 0137 settingspasswordrequester.cpp 0138 setupserver.cpp 0139 serverinfodialog.cpp 0140 passwordrequester.cpp 0141 gmailpasswordrequester.cpp 0142 0143 imapresource.h 0144 resourcestate.h 0145 settingspasswordrequester.h 0146 setupserver.h 0147 serverinfodialog.h 0148 passwordrequester.h 0149 gmailpasswordrequester.h 0150 ) 0151 0152 install( FILES imapresource.desktop DESTINATION "${KDE_INSTALL_DATAROOTDIR}/akonadi/agents" ) 0153 0154 0155 0156 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT) 0157 set_target_properties(akonadi_imap_resource PROPERTIES UNITY_BUILD ON) 0158 endif() 0159 if( APPLE ) 0160 set_target_properties(akonadi_imap_resource PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/../Info.plist.template) 0161 set_target_properties(akonadi_imap_resource PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.Akonadi.Imap") 0162 set_target_properties(akonadi_imap_resource PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "KDE Akonadi IMAP Resource") 0163 endif () 0164 0165 target_link_libraries(akonadi_imap_resource 0166 Qt::DBus 0167 KPim6::AkonadiCore 0168 KPim6::IMAP 0169 akonadi-singlefileresource 0170 KPim6::AkonadiWidgets 0171 KPim6::MailTransport 0172 KPim6::Mime 0173 KPim6::AkonadiMime 0174 KPim6::IdentityManagementCore 0175 KF6::I18n 0176 imapresource 0177 KF6::TextWidgets 0178 KF6::ConfigGui 0179 0180 folderarchivesettings 0181 KPim6::GAPICore 0182 ) 0183 0184 install( 0185 FILES org.kde.akonadi_imap_resource.desktop 0186 DESTINATION ${KDE_INSTALL_APPDIR} 0187 ) 0188 0189 install(TARGETS akonadi_imap_resource ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 0190 0191 if(BUILD_TESTING) 0192 add_subdirectory( autotests ) 0193 add_subdirectory( tests ) 0194 endif()