-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
111 lines (96 loc) · 3.89 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
cmake_minimum_required(VERSION 3.19)
project(motiv VERSION 1.0.0 LANGUAGES CXX)
set(PROJECT_SOURCE_URL https://github.com/parcio/motiv)
set(PROJECT_ISSUES_URL ${PROJECT_SOURCE_URL}/issues)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Dependencies
find_package(Qt6 REQUIRED COMPONENTS Core Widgets)
# Configure OTF2xx submodule
set(OTF2XX_CHRONO_DURATION_TYPE nanoseconds CACHE INTERNAL "")
add_subdirectory(lib/otf2xx)
mark_as_advanced(OTF2XX_WITH_MPI OTF2_CONFIG OTF2_PRINT)
set(PROJECT_SOURCES
resources.qrc
src/ReaderCallbacks.cpp
src/main.cpp
src/models/AppSettings.cpp
src/models/Filetrace.cpp
src/models/Filter.cpp
src/models/Slot.cpp
src/models/SubTrace.cpp
src/models/UITrace.cpp
src/models/ViewSettings.cpp
src/models/ColorMap.cpp
src/models/communication/BlockingP2PCommunicationEvent.cpp
src/models/communication/BlockingReceivEevent.cpp
src/models/communication/BlockingSendEvent.cpp
src/models/communication/CollectiveCommunicationEvent.cpp
src/models/communication/Communication.cpp
src/models/communication/NonBlockingP2PCommunicationEvent.cpp
src/models/communication/NonBlockingReceiveEvent.cpp
src/models/communication/NonBlockingSendEvent.cpp
src/models/communication/RequestCancelledEvent.cpp
src/ui/ColorGenerator.cpp
src/ui/ColorSynchronizer.cpp
src/ui/widgets/InformationDock.cpp
src/ui/ScrollSynchronizer.cpp
src/ui/TimeUnit.cpp
src/ui/TraceDataProxy.cpp
src/ui/views/CollectiveCommunicationIndicator.cpp
src/ui/views/CommunicationIndicator.cpp
src/ui/views/GenericIndicator.cpp
src/ui/views/SlotIndicator.cpp
src/ui/views/TimelineView.cpp
src/ui/views/TraceOverviewTimelineView.cpp
src/ui/widgets/ColorPicker.cpp
src/ui/widgets/InformationDock.cpp
src/ui/widgets/TimeInputField.cpp
src/ui/widgets/TimeUnitLabel.cpp
src/ui/widgets/Timeline.cpp
src/ui/widgets/TimelineHeader.cpp
src/ui/widgets/TimelineLabelList.cpp
src/ui/widgets/TraceOverviewDock.cpp
src/ui/widgets/infostrategies/InformationDockCollectiveCommunicationStrategy.cpp
src/ui/widgets/infostrategies/InformationDockCommunicationStrategy.cpp
src/ui/widgets/infostrategies/InformationDockElementBaseStrategy.cpp
src/ui/widgets/infostrategies/InformationDockSlotStrategy.cpp
src/ui/widgets/infostrategies/InformationDockTraceStrategy.cpp
src/ui/windows/FilterPopup.cpp
src/ui/windows/MainWindow.cpp
src/ui/windows/Otf2FileDialog.cpp
src/ui/windows/RecentFilesDialog.cpp
src/utils.cpp
)
qt_add_executable(${PROJECT_NAME} ${PROJECT_SOURCES})
target_compile_options(${PROJECT_NAME} PRIVATE
-DQT_NO_KEYWORDS
-Wall
-Wextra
-Wpedantic
)
target_compile_definitions(${PROJECT_NAME} PRIVATE
MOTIV_VERSION_STRING="${PROJECT_VERSION}"
MOTIV_SOURCE_URL="${PROJECT_SOURCE_URL}"
MOTIV_ISSUES_URL="${PROJECT_ISSUES_URL}"
)
target_link_libraries(${PROJECT_NAME}
PRIVATE
Qt6::Widgets
otf2xx::Reader
)
set_target_properties(${PROJECT_NAME} PROPERTIES
MACOSX_BUNDLE_GUI_IDENTIFIER de.ovgu.parcio.motiv
MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
MACOSX_BUNDLE TRUE
WIN32_EXECUTABLE TRUE
)
install(TARGETS ${PROJECT_NAME}
BUNDLE DESTINATION .)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/motiv.desktop DESTINATION share/applications)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/res/motiv.png DESTINATION share/icons)