-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
CMakeLists.txt
89 lines (71 loc) · 2.1 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
cmake_minimum_required(VERSION 3.16)
# Release Service version, managed by release script
set (RELEASE_SERVICE_VERSION_MAJOR "25")
set (RELEASE_SERVICE_VERSION_MINOR "03")
set (RELEASE_SERVICE_VERSION_MICRO "70")
set (RELEASE_SERVICE_COMPACT_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}${RELEASE_SERVICE_VERSION_MINOR}${RELEASE_SERVICE_VERSION_MICRO}")
# Bump MASSIF_VISUALIZER_BASE_VERSION once new features are added
set(MASSIF_VISUALIZER_BASE_VERSION "0.8")
set(MASSIF_VISUALIZER_VERSION "${MASSIF_VISUALIZER_BASE_VERSION}.${RELEASE_SERVICE_COMPACT_VERSION}")
project(massif-visualizer VERSION ${MASSIF_VISUALIZER_VERSION})
set(QT_MIN_VERSION "6.5.0")
set(KF_MIN_VERSION "6.0.0")
find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH
${CMAKE_CURRENT_SOURCE_DIR}/cmake/
${CMAKE_MODULE_PATH}
${ECM_MODULE_PATH}
)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMOptionalAddSubdirectory)
include(ECMInstallIcons)
include(ECMAddTests)
include(ECMDeprecationSettings)
include(FeatureSummary)
find_package(Qt6 ${QT_MIN_VERSION} REQUIRED COMPONENTS
Core
Core5Compat
Widgets
Svg
Test
PrintSupport
)
find_package(KF6 ${KF_MIN_VERSION} REQUIRED COMPONENTS
Archive
Config
CoreAddons
Parts
KIO
I18n
)
find_package(KChart6 "3.0.0" REQUIRED)
find_package(KGraphViewerPart 2.5.0)
set_package_properties(KGraphViewerPart PROPERTIES
DESCRIPTION "KPart to view callgraph dot files"
PURPOSE "Required for detailed snapshot analysis"
URL "https://commits.kde.org/kgraphviewer"
TYPE RECOMMENDED)
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
)
# added by KDE_COMPILERSETTINGS_LEVEL >= 5.85.0
remove_definitions(
-DQT_NO_KEYWORDS
-DQT_NO_FOREACH
)
ecm_set_disabled_deprecation_versions(
QT 6.5
KF 6.0
)
add_subdirectory(massifdata)
add_subdirectory(visualizer)
add_subdirectory(app)
add_subdirectory(pics)
if (BUILD_TESTING)
add_subdirectory(test)
endif()
ki18n_install(po)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)