CMakeLists.txt 1.68 KB
Newer Older
1
2
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)

3
4
project(minuet)

5
6
# KDE Application Version, managed by release script
set (KDE_APPLICATIONS_VERSION_MAJOR "16")
7
set (KDE_APPLICATIONS_VERSION_MINOR "11")
Sandro Andrade's avatar
Sandro Andrade committed
8
set (KDE_APPLICATIONS_VERSION_MICRO "70")
Sandro Andrade's avatar
Sandro Andrade committed
9
#set (KDE_APPLICATIONS_VERSION "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATIONS_VERSION_MINOR}.${KDE_APPLICATIONS_VERSION_MICRO}")
Sandro Andrade's avatar
Sandro Andrade committed
10
set (KDE_APPLICATIONS_VERSION "0.2.80")
11

12
set(ECM_MIN_VERSION "5.15.0")
13
set(QT_MIN_VERSION "5.7.0")
14
set(KF5_MIN_VERSION "5.15.0")
15
16

find_package(ECM ${ECM_MIN_VERSION} CONFIG REQUIRED)
17
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
18

19
include(ECMSetupVersion)
20
21
22
include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECMakeSettings)
23
include(GenerateExportHeader)
24
include(KDECompilerSettings NO_POLICY_SCOPE)
25
26
include(FeatureSummary)

27
ecm_setup_version(${KDE_APPLICATIONS_VERSION} VARIABLE_PREFIX MINUET
28
                  VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/src/app/minuet_version.h"
29
30
)

31
32
33
34
35
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
    Core
    Widgets
    Quick
)
36

37
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
38
    DocTools
39
    XmlGui
40
41
42
43
    I18n
    CoreAddons
    Completion
    WidgetsAddons
44
    KIO
Sandro Andrade's avatar
Sandro Andrade committed
45
    Crash
46
47
48
49
)

feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)

50
51
include_directories(${minuet_SOURCE_DIR}/src/ ${minuet_BINARY_DIR}/src)

52
53
54
add_subdirectory(doc)
add_subdirectory(src)
add_subdirectory(icons)
55
add_subdirectory(data)
Sandro Andrade's avatar
Sandro Andrade committed
56

57
install(FILES org.kde.minuet.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
58
59
60
61
62

install(EXPORT MinuetTargets
    DESTINATION "${KDE_INSTALL_CMAKEPACKAGEDIR}/Minuet"
    NAMESPACE Minuet::
    FILE MinuetTargets.cmake)