-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
85 lines (75 loc) · 2.24 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
cmake_minimum_required(VERSION 3.12)
project(Metro)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
if (NOT APPLE)
add_definitions(-DDISABLE_TOUCH_BAR)
set(TOUCHBAR_SRCS src/TouchBar.cpp)
else()
set(TOUCHBAR_SRCS src/TouchBar.mm)
endif()
find_package(Qt5 COMPONENTS Widgets Sql Charts REQUIRED)
add_executable(Meteor
src/db.cpp
src/db.h
src/main.cpp
src/mainwindow.cpp
src/mainwindow.h
${TOUCHBAR_SRCS}
src/Task.cpp
src/Task.h
src/TaskDelay.cpp
src/TaskDelay.h
src/TaskReadDataset.cpp
src/TaskReadDataset.h
src/TaskScheduler.cpp
src/TaskScheduler.h
src/mainwindow.ui
src/TaskQueryEntryExit.cpp
src/TaskQueryEntryExit.h
src/TaskAddTimestamp.cpp
src/TaskAddTimestamp.h
src/TaskInitDatabase.cpp
src/TaskInitDatabase.h
src/TaskPlanRoute.cpp
src/TaskPlanRoute.h
src/ConfigManager.cpp
src/ConfigManager.h
src/MetroWidget.cpp
src/MetroWidget.h
src/MetroPainter.cpp
src/MetroPainter.h
src/TaskGetMapping.cpp
src/TaskGetMapping.h
src/TaskFlowAnalysis.cpp
src/TaskFlowAnalysis.h
src/utils.cpp
src/utils.h
src/TouchBar.h
src/MetroChartView.cpp
src/MetroChartView.h
src/TaskQueryFlow.cpp
src/TaskQueryFlow.h
src/TaskSmartTravel.cpp
src/TaskSmartTravel.h
src/TaskQuerySmartTravel.cpp
src/TaskQuerySmartTravel.h
src/TaskBaseFlowAnalysis.cpp
src/TaskBaseFlowAnalysis.h
src/wizard.h
src/wizard.cpp
src/wizard.ui
src/mainwindowTouchBar.cpp
src/mainwindow_tab_flow.cpp
src/mainwindow_tab_route.cpp
src/mainwindow_tab_passenger.cpp src/SmartTravelModel.hpp src/Meteor.h src/mainwindow_benchmark.cpp)
if (APPLE)
target_link_libraries(Meteor PRIVATE Qt5::Core Qt5::Sql Qt5::Widgets Qt5::Charts "-framework AppKit")
else()
target_link_libraries(Meteor PRIVATE Qt5::Core Qt5::Sql Qt5::Widgets Qt5::Charts)
endif()