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

0001 add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_pop3_resource\")
0002 
0003 
0004 set(pop3_common_SRCS
0005     settings.cpp
0006     )
0007 kconfig_add_kcfg_files(pop3_common_SRCS settingsbase.kcfgc)
0008 ecm_qt_declare_logging_category(pop3_common_SRCS HEADER pop3resource_debug.h IDENTIFIER POP3RESOURCE_LOG CATEGORY_NAME org.kde.pim.pop3resource
0009     DESCRIPTION "pop3 resource (kdepim-runtime)"
0010     OLD_CATEGORY_NAMES log_pop3resource
0011     EXPORT KDEPIMRUNTIME
0012     )
0013 ecm_qt_declare_logging_category(pop3_common_SRCS HEADER pop3protocol_debug.h IDENTIFIER POP3_LOG CATEGORY_NAME org.kde.pim.pop3protocol
0014     DESCRIPTION "pop3 protocol (kdepim-runtime)"
0015     EXPORT KDEPIMRUNTIME
0016     )
0017 
0018 kcfg_generate_dbus_interface(${CMAKE_CURRENT_SOURCE_DIR}/settings.kcfg org.kde.Akonadi.POP3.Settings)
0019 qt_add_dbus_adaptor(pop3_common_SRCS
0020     ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.POP3.Settings.xml settings.h Settings
0021     )
0022 
0023 ################################# Resource ####################################
0024 
0025 set( pop3resource_SRCS
0026     pop3resource.cpp
0027     pop3protocol.cpp
0028     jobs.cpp
0029     pop3resource.h
0030     pop3protocol.h
0031     jobs.h
0032     ${pop3_common_SRCS}
0033     )
0034 
0035 install( FILES pop3resource.desktop DESTINATION "${KDE_INSTALL_DATAROOTDIR}/akonadi/agents" )
0036 
0037 #add_executable(akonadi_pop3_resource RUN_UNINSTALLED ${pop3resource_SRCS})
0038 add_executable(akonadi_pop3_resource ${pop3resource_SRCS})
0039 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
0040     set_target_properties(akonadi_pop3_resource PROPERTIES UNITY_BUILD ON)
0041 endif()
0042 if( APPLE )
0043     set_target_properties(akonadi_pop3_resource PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/../Info.plist.template)
0044     set_target_properties(akonadi_pop3_resource PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.Akonadi.POP3")
0045     set_target_properties(akonadi_pop3_resource PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "KDE Akonadi POP3 Resource")
0046 endif ()
0047 
0048 
0049 target_link_libraries( akonadi_pop3_resource
0050     KPim6::AkonadiCore
0051     KPim6::AkonadiMime
0052     KPim6::Mime
0053     KPim6::MailTransport
0054     KPim6::AkonadiAgentBase
0055     KF6::I18n
0056     KF6::KIOWidgets  # SslUi
0057     KF6::Notifications
0058     Qt::DBus
0059     Qt::Network # QNetworkProxy
0060     qt6keychain
0061     KF6::WidgetsAddons
0062     Sasl2::Sasl2
0063     )
0064 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
0065     set_target_properties(akonadi_pop3_resource PROPERTIES UNITY_BUILD ON)
0066 endif()
0067 
0068 if(BUILD_TESTING)
0069     add_subdirectory( autotests )
0070 endif()
0071 
0072 install(TARGETS akonadi_pop3_resource ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0073 install(FILES akonadi_pop3_resource.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFYRCDIR})
0074 
0075 
0076 ################################## Config plugin ##############################
0077 kcoreaddons_add_plugin(pop3config
0078     INSTALL_NAMESPACE "pim6/akonadi/config"
0079     )
0080 
0081 target_sources(pop3config PRIVATE
0082     pop3config.cpp
0083     accountwidget.cpp
0084     accountwidget.h
0085     ${pop3_common_SRCS}
0086     )
0087 ki18n_wrap_ui(pop3config popsettings.ui)
0088 
0089 target_link_libraries(pop3config
0090     KPim6::AkonadiCore
0091     KF6::TextWidgets
0092     KF6::Completion
0093     KF6::WidgetsAddons
0094     KF6::I18n
0095     KPim6::MailTransport
0096     KPim6::AkonadiWidgets
0097     KPim6::AkonadiAgentBase
0098     KPim6::AkonadiMime
0099     qt6keychain
0100     )