-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
92 lines (75 loc) · 2.53 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
cmake_minimum_required(VERSION 3.10)
project(roboteam_monitor)
SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules")
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed
set(CMAKE_AUTOMOC ON)
# Create code from a list of Qt designer ui files
set(CMAKE_AUTOUIC OFF)
# for MacOS X or iOS, watchOS, tvOS (since 3.10.3)
if(APPLE)
set(Qt5Widgets_DIR "/usr/local/opt/qt5/lib/cmake/Qt5Widgets")
set(Qt5Core_DIR "/usr/local/opt/qt/lib/cmake/Qt5Core")
set(Qt5Gui_DIR "/usr/local/opt/qt/lib/cmake/Qt5Gui")
SET(Qt5Charts_DIR "/usr/local/opt/qt/lib/cmake/Qt5Charts")
find_package(Qt5Core REQUIRED)
find_package(Qt5Gui REQUIRED)
endif()
# for Linux, BSD, Solaris, Minix
if(UNIX AND NOT APPLE)
SET(Qt5Widgets_DIR "/usr/include/x86_64-linux-gnu/qt5/QtWidgets")
SET(Qt5Charts_DIR "/usr/include/x86_64-linux-gnu/qt5/QtCharts")
endif()
find_package(Qt5Charts REQUIRED)
find_package(Qt5Widgets REQUIRED)
set(VIEWS
src/views/WelcomeDialog.cpp
src/views/components/MenuBar.cpp
src/views/MainWindow.cpp
src/views/components/SelectTypeWidget.cpp
src/views/AddFilterDialog.cpp
src/views/ChartView.cpp
src/views/SeriesView.cpp
src/views/FilterView.cpp
src/views/components/ConfirmationWidget.cpp
src/views/SeriesSettingsDialog.cpp
)
set(PRESENTERS
src/presenters/ChartPresenter.cpp
src/presenters/SeriesPresenter.cpp
src/presenters/FilterPresenter.cpp
src/presenters/SeriesSettingsPresenter.cpp
src/presenters/SeriesSettingsPresenter.cpp
)
set(MODELS
src/models/ChartModel.cpp
src/models/SeriesSettingsModel.cpp
src/models/FilterModel.cpp
src/models/SeriesModel.cpp
src/models/FieldDefinition.cpp)
set(UTILS
src/utils/Helpers.cpp src/utils/SubscriptionManager.cpp src/utils/SubscriptionManager.h)
# Add an executable
add_executable(roboteam_monitor
src/main.cpp
${MODELS}
${VIEWS}
${PRESENTERS}
${UTILS}
)
# link the exe against the libraries
target_link_libraries(roboteam_monitor
PUBLIC roboteam_proto
PUBLIC roboteam_utils
PRIVATE Qt5::Widgets
PRIVATE Qt5::Gui
PRIVATE Qt5::Charts
)
set_target_properties(roboteam_monitor PROPERTIES
CXX_STANDARD 17
)
target_include_directories(roboteam_monitor
INTERFACE include
PRIVATE include
PRIVATE src )