3 if(${CMAKE_SOURCE_DIR} STREQUAL ${console_SOURCE_DIR})
4 cmake_minimum_required(VERSION 2.8.12)
5 set(KF5_VERSION "5.22.0")
6 find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
7 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
8 include(ECMInstallIcons)
10 include(ECMOptionalAddSubdirectory)
11 include(ECMSetupVersion)
13 include(ECMMarkNonGuiExecutable)
14 include(GenerateExportHeader)
15 include(ECMGenerateHeaders)
16 include(CMakePackageConfigHelpers)
17 include(FeatureSummary)
18 include(CheckFunctionExists)
19 include(ECMGeneratePriFile)
21 include(KDEInstallDirs)
22 include(KDECMakeSettings)
23 include(KDECompilerSettings NO_POLICY_SCOPE)
24 include(ECMAddAppIcon)
25 include(ECMQtDeclareLoggingCategory)
29 set(KDEPIM_VERSION_NUMBER "5.2.49")
30 set(KDEPIM_VERSION "${KDEPIM_VERSION_NUMBER}${KDEPIM_DEV_VERSION}")
33 set(KDEPIMLIBS_LIB_VERSION "5.2.40")
34 set(AKONADICALENDAR_LIB_VERSION "5.2.40")
35 set(AKONADI_VERSION "5.2.40")
36 set(LIBKDEPIM_LIB_VERSION_LIB "5.2.40")
37 set(CALENDARSUPPORT_LIB_VERSION_LIB "5.2.40")
38 set(KCALENDARCORE_LIB_VERSION "5.2.40")
39 set(KCONTACTS_LIB_VERSION "5.2.40")
41 set(KDEPIM_LIB_VERSION "${KDEPIM_VERSION_NUMBER}")
42 set(KDEPIM_LIB_SOVERSION "5")
44 set(QT_REQUIRED_VERSION "5.6.0")
45 find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets)
49 find_package(KF5DocTools ${KF5_VERSION} REQUIRED)
51 # Find KdepimLibs Package
52 find_package(KF5Akonadi ${AKONADI_VERSION} CONFIG REQUIRED)
53 find_package(KF5Contacts ${KCONTACTS_LIB_VERSION} CONFIG REQUIRED)
54 find_package(KF5CalendarCore ${KCALENDARCORE_LIB_VERSION} CONFIG REQUIRED)
55 find_package(KF5AkonadiContact ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
56 find_package(KF5CalendarUtils ${CALENDARUTILS_LIB_VERSION} CONFIG REQUIRED)
57 find_package(KF5AkonadiCalendar ${AKONADICALENDAR_LIB_VERSION} CONFIG REQUIRED)
58 find_package(KF5Libkdepim ${LIBKDEPIM_LIB_VERSION_LIB} CONFIG REQUIRED)
59 find_package(KF5CalendarSupport ${CALENDARSUPPORT_LIB_VERSION_LIB} CONFIG REQUIRED)
62 include_directories(${console_SOURCE_DIR} ${console_BINARY_DIR})
63 add_definitions(-DQT_USE_QSTRINGBUILDER)
65 configure_file(console-version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/console-version.h @ONLY)
67 add_definitions( -DQT_NO_CAST_FROM_ASCII )
68 add_definitions( -DQT_NO_CAST_TO_ASCII )
70 add_subdirectory(calendarjanitor)
71 add_subdirectory(konsolekalendar)
73 install( FILES console.categories DESTINATION ${KDE_INSTALL_CONFDIR} )
75 if ("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
76 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)