KDE PIM support for the p≡p engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

137 lines
6.1 KiB

project(pEpForKDE)
string( REPLACE "fno-exceptions" "fexceptions" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
string( REPLACE "fno-exceptions" "fexceptions" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
string( REGEX REPLACE "\\-DNDEBUG" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
string( REGEX REPLACE "\\-DNDEBUG" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
# setting the version of this viewer:
set(PROJECT_VERSION_STRING "alpha")
set(PEP_MESSAGEVIEWER_VERSION_STRING ${PROJECT_VERSION_STRING})
set(PEP_MESSAGEVIEWER_SOVERSION 1)
# now the dependencies:
cmake_minimum_required(VERSION 3.5)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_VISIBILITY_INLINES_HIDDEN OFF)
set(CMAKE_CXX_FLAGS_RELEASE "-g -fpermissive -fexceptions")
set(CMAKE_CXX_FLAGS_DEBUG "-g -fpermissive -fexceptions")
set(PIM_VERSION "5.16.2")
set(KF5_MIN_VERSION "5.75.0")
set(MESSAGELIB_LIB_VERSION ${PIM_VERSION})
set(AKONADIMIME_LIB_VERSION "5.16.2")
set(QT_REQUIRED_VERSION "5.13.0")
set(AKONADICONTACT_LIB_VERSION "5.16.2")
set(AKONADI_VERSION "5.16.2")
set(GRANTLEETHEME_LIB_VERSION "5.16.2")
set(GRAVATAR_LIB_VERSION "5.16.2")
set(IDENTITYMANAGEMENT_LIB_VERSION "5.16.2")
set(KLDAP_LIB_VERSION "5.16.2")
set(KMAILTRANSPORT_LIB_VERSION "5.16.2")
set(KMBOX_LIB_VERSION "5.16.2")
set(KMIME_LIB_VERSION "5.16.2")
set(KPIMTEXTEDIT_LIB_VERSION "5.16.2")
set(LIBKDEPIM_LIB_VERSION "5.16.2")
set(LIBKLEO_LIB_VERSION "5.16.2")
set(PIMCOMMON_LIB_VERSION "5.16.2")
set(GPGME_LIB_VERSION "1.11.1")
set(AKONADI_SEARCH_VERSION "5.16.2")
set(ECM_VERSION ${KF5_MIN_VERSION})
set(AKONADINOTES_LIB_VERSION "5.16.2")
set(INCIDENCEEDITOR_LIB_VERSION "5.16.2")
set(MAILCOMMON_LIB_VERSION "5.16.2")
set(XSLTPROC_EXECUTABLE /usr/bin/xsltproc)
find_package(ECM 1.0.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
include(KDEClangFormat)
include(KDECompilerSettings)
include(KDEFrameworkCompilerSettings)
include(KDEGitCommitHooks)
include(KDEInstallDirs)
include(KDEPackageAppTemplates)
include(ECMInstallIcons)
include(ECMGenerateHeaders)
include(ECMQtDeclareLoggingCategory)
include(ECMGeneratePriFile)
include(FindPkgConfig)
pkg_check_modules( dbus-c++-1 REQUIRED dbus-c++-1 )
include_directories(${dbus-c++-1_INCLUDE_DIRS})
include_directories(${PROJECT_SOURCE_DIR})
find_package(KF5IncidenceEditor ${INCIDENCEEDITOR_LIB_VERSION} CONFIG REQUIRED)
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Gui Test)
find_package(KF5Codecs ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5I18n ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5Mime ${KMIME_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5NewStuff ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(QGpgme ${GPGME_LIB_VERSION} CONFIG REQUIRED)
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets Network PrintSupport WebEngine WebEngineWidgets)
find_package(KF5Archive ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5Completion ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5Config ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5ConfigWidgets ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5IconThemes ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5ItemViews ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5JobWidgets ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5KIO ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5Service ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5Sonnet ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5TextWidgets ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5WidgetsAddons ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5XmlGui ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5SyntaxHighlighting ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5DBusAddons ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5GuiAddons ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5Notifications ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5MessageCore ${AKONADIMIME_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5MimeTreeParser ${AKONADIMIME_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5WebEngineViewer ${AKONADIMIME_LIB_VERSION} CONFIG REQUIRED)
find_package(Grantlee5 ${GRANTLEE_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5GrantleeTheme ${GRANTLEETHEME_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Akonadi ${AKONADI_VERSION} CONFIG REQUIRED)
find_package(KF5AkonadiMime ${AKONADIMIME_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Contacts ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5AkonadiContact ${AKONADICONTACT_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Gravatar ${GRAVATAR_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5IdentityManagement ${IDENTITYMANAGEMENT_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Ldap ${KLDAP_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Libkleo ${LIBKLEO_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5MailTransportAkonadi ${KMAILTRANSPORT_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5MailCommon ${MAILCOMMON_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Mbox ${KMBOX_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5PimCommonAkonadi ${PIMCOMMON_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5PimTextEdit ${KPIMTEXTEDIT_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Libkdepim ${LIBKDEPIM_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5AkonadiSearch ${AKONADI_SEARCH_VERSION} CONFIG REQUIRED)
find_package(KF5MessageViewer ${MESSAGELIB_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5AkonadiNotes ${AKONADINOTES_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5KontactInterface ${AKONADINOTES_LIB_VERSION} CONFIG REQUIRED)
find_package(Inotify)
find_package(Qca-qt5 2.2.0 CONFIG REQUIRED)
find_package(Grantlee5 ${GRANTLEE_MIN_VERSION} CONFIG REQUIRED)
pkg_check_modules (SEQUOIA sequoia)
pkg_check_modules (SEQUOIA_OPENPGP sequoia-openpgp)
add_subdirectory(icons)
add_subdirectory(pEpDBusAdapter)
include_directories(${PROJECT_BINARY_DIR}/pEpDBusAdapter)
include_directories(${PROJECT_SOURCE_DIR}/pEpDBusAdapter)
include_directories(${PROJECT_SOURCE_DIR}/pEpDBusAdapter/types)
add_subdirectory(akonadi_pep_agent)
add_subdirectory(messageviewerplugin)
add_subdirectory(pepcomposer)