Commit 7a9213f3 authored by Laurent Montel's avatar Laurent Montel 😁

Clean up

parent 51e3e773
...@@ -4,46 +4,8 @@ cmake_minimum_required(VERSION 2.8.12) ...@@ -4,46 +4,8 @@ cmake_minimum_required(VERSION 2.8.12)
add_definitions( -DQT_NO_CAST_FROM_ASCII ) add_definitions( -DQT_NO_CAST_FROM_ASCII )
add_definitions( -DQT_NO_CAST_TO_ASCII ) add_definitions( -DQT_NO_CAST_TO_ASCII )
if ("${CMAKE_SOURCE_DIR}" STREQUAL "${agents_SOURCE_DIR}")
find_package(ECM 5.9.0 CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${agents_SOURCE_DIR}/cmake ${ECM_MODULE_PATH})
include(ECMPackageConfigHelpers)
include(ECMSetupVersion)
include(FeatureSummary)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDEFrameworkCompilerSettings)
set(KDEPIMLIBS_LIB_VERSION "4.75.0")
set(KF5_VERSION "5.9.0")
set(QT_REQUIRED_VERSION "5.4.0")
# KF5 package
find_package(KF5Config ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5NotifyConfig ${KF5_VERSION} CONFIG REQUIRED)
# KdepimLibs package
find_package(KF5Akonadi ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Mime ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5AkonadiMime ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5MailTransport ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5IdentityManagement ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5AkonadiContact ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5CalendarCore ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
# Xsltproc
find_package(Xsltproc)
set_package_properties(Xsltproc PROPERTIES DESCRIPTION "XSLT processor from libxslt" TYPE REQUIRED PURPOSE "Required to generate D-Bus interfaces for all Akonadi resources.")
endif()
add_subdirectory( maildispatcher ) add_subdirectory( maildispatcher )
add_subdirectory( newmailnotifier ) add_subdirectory( newmailnotifier )
add_subdirectory( migration ) add_subdirectory( migration )
add_subdirectory( invitations ) add_subdirectory( invitations )
if ("${CMAKE_SOURCE_DIR}" STREQUAL "${agents_SOURCE_DIR}")
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
endif()
project(kioslave) project(kioslave)
cmake_minimum_required(VERSION 2.8.12) cmake_minimum_required(VERSION 2.8.12)
if ("${CMAKE_SOURCE_DIR}" STREQUAL "${kioslave_SOURCE_DIR}")
find_package(ECM 5.9.0 CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${resources_SOURCE_DIR}/cmake ${ECM_MODULE_PATH})
include(ECMPackageConfigHelpers)
include(ECMSetupVersion)
include(FeatureSummary)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDEFrameworkCompilerSettings)
set(KDEPIMLIBS_LIB_VERSION "4.75.0")
set(KF5_VERSION "5.9.0")
set(QT_REQUIRED_VERSION "5.4.0")
find_package(KF5KIO ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5Akonadi ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
endif()
set(kio_akonadi_SRCS akonadislave.cpp akonadislave_debug.cpp) set(kio_akonadi_SRCS akonadislave.cpp akonadislave_debug.cpp)
...@@ -45,8 +24,3 @@ install(TARGETS kio_akonadi DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/kio ) ...@@ -45,8 +24,3 @@ install(TARGETS kio_akonadi DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/kio )
install( FILES akonadi.protocol DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) install( FILES akonadi.protocol DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
if ("${CMAKE_SOURCE_DIR}" STREQUAL "${kioslave_SOURCE_DIR}")
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
endif()
project(migration) project(migration)
if ("${CMAKE_SOURCE_DIR}" STREQUAL "${migration_SOURCE_DIR}")
find_package(ECM 5.9.0 CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${migration_SOURCE_DIR}/cmake ${ECM_MODULE_PATH})
include(ECMPackageConfigHelpers)
include(ECMSetupVersion)
include(FeatureSummary)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDEFrameworkCompilerSettings)
set(KDEPIMLIBS_LIB_VERSION "4.75.0")
set(KF5_VERSION "5.9.0")
set(QT_REQUIRED_VERSION "5.4.0")
find_package(KF5Config ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5Akonadi ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Mime ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Contacts ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5MailTransport ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Mbox ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5AkonadiMime ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5PimTextEdit ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5IMAP ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
endif()
add_definitions( -DQT_NO_CAST_FROM_ASCII ) add_definitions( -DQT_NO_CAST_FROM_ASCII )
add_definitions( -DQT_NO_CAST_TO_ASCII ) add_definitions( -DQT_NO_CAST_TO_ASCII )
#REMOVE IT #REMOVE IT
...@@ -50,7 +25,3 @@ set( MIGRATION_AKONADI_SHARED_SOURCES ...@@ -50,7 +25,3 @@ set( MIGRATION_AKONADI_SHARED_SOURCES
add_subdirectory( gid ) add_subdirectory( gid )
if ("${CMAKE_SOURCE_DIR}" STREQUAL "${migration_SOURCE_DIR}")
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
endif()
...@@ -3,21 +3,6 @@ add_definitions( -DQT_NO_CAST_FROM_ASCII ) ...@@ -3,21 +3,6 @@ add_definitions( -DQT_NO_CAST_FROM_ASCII )
add_definitions( -DQT_NO_CAST_TO_ASCII ) add_definitions( -DQT_NO_CAST_TO_ASCII )
if ("${CMAKE_SOURCE_DIR}" STREQUAL "${plugins_SOURCE_DIR}")
set(KDEPIMLIBS_LIB_VERSION "4.75.0")
set(KMIME_LIB_VERSION "4.83.0")
find_package(Qt5DBus ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5Akonadi ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Mime ${KMIME_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Contacts ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5AlarmCalendar ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5CalendarCore ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5CalendarUtils ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5AkonadiContact ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5AkonadiMime ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
endif()
add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_serializer_plugins\") add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_serializer_plugins\")
...@@ -65,7 +50,3 @@ if (BUILD_TESTING) ...@@ -65,7 +50,3 @@ if (BUILD_TESTING)
add_subdirectory( autotests ) add_subdirectory( autotests )
endif() endif()
if ("${CMAKE_BINARY_DIR}" STREQUAL "${plugins_BINARY_DIR}")
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
endif()
project(resources) project(resources)
cmake_minimum_required(VERSION 2.8.12)
set(AKONADICALENDAR_LIB_VERSION "4.78.0") set(AKONADICALENDAR_LIB_VERSION "4.78.0")
set(KMBOX_LIB_VERSION "4.78.0") set(KMBOX_LIB_VERSION "4.78.0")
...@@ -85,7 +84,4 @@ add_subdirectory( icaldir ) ...@@ -85,7 +84,4 @@ add_subdirectory( icaldir )
add_subdirectory( vcard ) add_subdirectory( vcard )
add_subdirectory( folderarchivesettings ) add_subdirectory( folderarchivesettings )
if ("${CMAKE_SOURCE_DIR}" STREQUAL "${resources_SOURCE_DIR}")
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
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