forked from ihewitt/poolviewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
128 lines (110 loc) · 2.61 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
cmake_minimum_required(VERSION 3.16.3)
include(FindPkgConfig)
project(poolview LANGUAGES CXX C)
add_subdirectory(fit/c)
set(CMAKE_AUTOUIC_SEARCH_PATHS "ui")
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
find_package(Qt6 REQUIRED COMPONENTS Widgets Charts PrintSupport Network WebEngineCore WebEngineWidgets SerialPort REQUIRED)
pkg_search_module(LIBUSB REQUIRED libusb-1.0)
set(RESOURCES
poolview.qrc
)
set(FORMS
ui/summary.ui
ui/sync.ui
ui/config.ui
ui/upload.ui
ui/besttimesimpl.ui
ui/analysis.ui
ui/edit.ui
ui/export.ui
ui/poolview.ui
ui/globalchart.ui
ui/swimselector.ui
)
set(HEADERS
src/graphwidget.h
src/calendar.h
src/export.h
src/authprivate.h
src/poolview.h
src/qtablewidgetcopy.h
src/widgets/basewidget.h
src/widgets/authdialog.h
src/widgets/uploadimpl.h
src/widgets/syncimpl.h
src/widgets/configimpl.h
src/widgets/summaryimpl.h
src/widgets/besttimesimpl.h
src/widgets/analysisimpl.h
src/widgets/edit.h
src/widgets/globalchartimpl.h
src/widgets/swimselector.h
src/tools/distances.h
src/tools/datastore.h
src/tools/podbase.h
src/tools/podorig.h
src/tools/podlive.h
src/tools/poolmate.h
src/tools/logging.h
src/tools/FIT.hpp
src/tools/exerciseset.h
src/tools/poda.h
src/tools/utilities.h
)
set(SOURCES
src/main.cpp
src/graphwidget.cpp
src/calendar.cpp
src/export.cpp
src/poolview.cpp
src/qtablewidgetcopy.cpp
src/widgets/basewidget.cpp
src/widgets/authdialog.cpp
src/widgets/uploadimpl.cpp
src/widgets/syncimpl.cpp
src/widgets/configimpl.cpp
src/widgets/summaryimpl.cpp
src/widgets/besttimesimpl.cpp
src/widgets/analysisimpl.cpp
src/widgets/edit.cpp
src/widgets/globalchartimpl.cpp
src/widgets/swimselector.cpp
src/tools/ExerciseSet.cpp
src/tools/distances.cpp
src/tools/datastore.cpp
src/tools/poolmate.c
src/tools/podorig.cpp
src/tools/podlive.cpp
src/tools/FIT.cpp
src/tools/utilities.cpp
src/tools/poda.cpp
src/tools/fitwriter.cpp
)
add_executable(poolview
${FORMS}
${RESOURCES}
${SOURCES}
${HEADERS}
)
# target_compile_definitions(poolview PRIVATE QT_DISABLE_DEPRECATED_BEFORE=0x050F00)
target_link_directories(poolview PRIVATE
${LIBUSB_DIRS}
)
target_link_libraries(poolview PRIVATE
${LIBUSB_LIBRARIES}
Qt::Widgets
Qt::Charts
Qt::PrintSupport
Qt::Network
Qt::WebEngineCore
Qt::WebEngineWidgets
Qt::SerialPort
fit
)
target_include_directories(poolview PRIVATE
${LIBUSB_INCLUDE_DIRS}
src
)