Commit 8e678f56 authored by Laurent Montel's avatar Laurent Montel 😁

Allow to split storageservicemanager

parent d0f7dab6
......@@ -17,5 +17,5 @@ mboximporter (DONE)
pimsettingexporter (DONE)
plugins
sieveeditor (DONE)
storageservicemanager
storageservicemanager (DONE)
project( storageservicemanager )
if(${CMAKE_SOURCE_DIR} STREQUAL ${storageservicemanager_SOURCE_DIR})
cmake_minimum_required(VERSION 2.8.12)
if (POLICY CMP0063)
cmake_policy(SET CMP0063 NEW)
endif()
find_package(ECM 5.20.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${storageservicemanager_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(ECMInstallIcons)
include(ECMOptionalAddSubdirectory)
include(ECMSetupVersion)
include(ECMAddTests)
include(ECMMarkNonGuiExecutable)
include(GenerateExportHeader)
include(ECMGenerateHeaders)
include(CMakePackageConfigHelpers)
include(FeatureSummary)
include(CheckFunctionExists)
include(ECMGeneratePriFile)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMAddAppIcon)
include(ECMQtDeclareLoggingCategory)
set(KF5_VERSION "5.20.0")
set(KDEPIM_VERSION_NUMBER "5.2.42")
set(KDEPIM_VERSION "${KDEPIM_VERSION_NUMBER}${KDEPIM_DEV_VERSION}")
set(KDEPIMLIBS_LIB_VERSION "5.2.40")
set(KMAILTRANSPORT_LIB_VERSION "5.2.40")
set(AKONADICALENDAR_LIB_VERSION "5.2.40")
set(CALENDARSUPPORT_LIB_VERSION_LIB "5.2.40")
set(KPIMTEXTEDIT_LIB_VERSION "5.2.40")
set(AKONADI_VERSION "5.2.40")
set(KDEPIM_LIB_VERSION "${KDEPIM_VERSION_NUMBER}")
set(KDEPIM_LIB_SOVERSION "5")
set(AKONADINOTES_LIB_VERSION "5.2.40")
set(QT_REQUIRED_VERSION "5.6.0")
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets Test Sql)
find_package(Qt5X11Extras NO_MODULE)
set(LIBMAILIMPORTER_VERSION_LIB "5.2.40")
set(MAILCOMMON_LIB_VERSION_LIB "5.2.40")
set(KDEPIM_APPS_LIB_VERSION_LIB "5.2.42")
set(MESSAGELIB_LIB_VERSION_LIB "5.2.56")
set(LIBKLEO_LIB_VERSION_LIB "5.2.40")
set(PIMCOMMON_LIB_VERSION_LIB "5.2.40")
set(LIBKDEPIM_LIB_VERSION_LIB "5.2.40")
set(LIBKSIEVE_LIB_VERSION_LIB "5.2.40")
# Find KF5 package
find_package(KF5DBusAddons ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5I18n ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5XmlGui ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5NotifyConfig ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5DocTools REQUIRED)
# Find KdepimLibs Package
find_package(KF5PimTextEdit ${KPIMTEXTEDIT_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Libkdepim ${LIBKDEPIM_LIB_VERSION_LIB} CONFIG REQUIRED)
find_package(KF5PimCommon ${PIMCOMMON_LIB_VERSION_LIB} CONFIG REQUIRED)
include_directories(${storageservicemanager_SOURCE_DIR} ${storageservicemanager_BINARY_DIR})
endif()
add_definitions( -DQT_NO_CAST_FROM_ASCII )
add_definitions( -DQT_NO_CAST_TO_ASCII )
......
configure_file(storageservicemanager-version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/storageservicemanager-version.h @ONLY)
set( storageservicemanager_kcfg_SRCS settings/storageservicemanagerglobalconfig.kcfgc )
......
include_directories(
${CMAKE_BINARY_DIR}/storageservicemanager/
${storageservicemanager_BINARY_DIR}/src
)
......@@ -16,10 +16,10 @@ add_storageservice_unittest(navigationbuttontest
storageservicenavigationbuttontest.cpp
../storageservicenavigationbuttons.cpp
../storageservicemanagerutil.cpp
${CMAKE_BINARY_DIR}/storageservicemanager/src/storageservicemanager_debug.cpp
${storageservicemanager_BINARY_DIR}/src/storageservicemanager_debug.cpp
)
add_storageservice_unittest(configurestoragewidgettest
storageserviceconfigurestoragewidgettest.cpp
../storageserviceconfigurestoragewidget.cpp
${CMAKE_BINARY_DIR}/storageservicemanager/src/storageservicemanager_debug.cpp
${storageservicemanager_BINARY_DIR}/src/storageservicemanager_debug.cpp
)
......@@ -18,7 +18,7 @@
*/
#include "kdepim-version.h"
#include "storageservicemanager-version.h"
#include "storageservicemanagermainwindow.h"
#include <kaboutdata.h>
#include <Kdelibs4ConfigMigrator>
......
/*
Copyright (c) 1998-1999 Preston Brown <pbrown@kde.org>
Copyright (c) 2000-2004 Cornelius Schumacher <schumacher@kde.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/*
Set the version for this kdepim release.
This version may be used by programs within this module that
do not want to maintain a version on their own.
Note that we cannot use the kdelibs version because we may
build against older kdelibs releases.
*/
#ifndef KDEPIM_VERSION_H
#define KDEPIM_VERSION_H
#define KDEPIM_VERSION "@KDEPIM_VERSION@ (@WEBENGINE_TYPE@)"
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment