-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
262 lines (244 loc) · 9.35 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
# Generated from linboGUI.pro.
cmake_minimum_required(VERSION 3.16)
project(linbo_gui LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
if(NOT DEFINED INSTALL_EXAMPLESDIR)
set(INSTALL_EXAMPLESDIR "examples")
endif()
set(INSTALL_EXAMPLEDIR "/usr/bin")
find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Widgets)
find_package(Qt6 COMPONENTS Svg)
find_package(Qt6 COMPONENTS SvgWidgets)
find_package(Qt6 COMPONENTS Xml)
find_package(Qt6 COMPONENTS LinguistTools)
qt_add_executable(linbo_gui "")
target_compile_definitions(linbo_gui PUBLIC
GUI_VERSION=\"7.2.5\"
)
set(SOURCE_FILES
headers/backend/linbobackend.h
headers/backend/linbocmd.h
headers/backend/linboconfig.h
headers/backend/linboconfigreader.h
headers/backend/linbodiskpartition.h
headers/backend/linboimage.h
headers/backend/linbologger.h
headers/backend/linboos.h
headers/backend/linbopostprocessactions.h
headers/backend/linbotheme.h
headers/frontend/components/linbocheckbox.h
headers/frontend/components/linbocombobox.h
headers/frontend/components/linbodialog.h
headers/frontend/components/linbolineedit.h
headers/frontend/components/linboprogressbar.h
headers/frontend/components/linbopushbutton.h
headers/frontend/components/linbopushbuttonoverlay.h
headers/frontend/components/linboradiobutton.h
headers/frontend/components/linbostackedwidget.h
headers/frontend/components/linbosvgwidget.h
headers/frontend/components/linboterminal.h
headers/frontend/components/linbotextbrowser.h
headers/frontend/components/linbotoolbutton.h
headers/frontend/dialogs/linboconfirmationdialog.h
headers/frontend/dialogs/linboimagecreationdialog.h
headers/frontend/dialogs/linboimageuploaddialog.h
headers/frontend/dialogs/linbologindialog.h
headers/frontend/dialogs/linboregisterdialog.h
headers/frontend/dialogs/linboterminaldialog.h
headers/frontend/dialogs/linboupdatecachedialog.h
headers/frontend/linboclientinfo.h
headers/frontend/linboguitheme.h
headers/frontend/linbomainactions.h
headers/frontend/linbomainpage.h
headers/frontend/linboosselectbutton.h
headers/frontend/linboosselectionrow.h
headers/linbogui.h
sources/backend/linbobackend.cpp
sources/backend/linbocmd.cpp
sources/backend/linboconfig.cpp
sources/backend/linboconfigreader.cpp
sources/backend/linbodiskpartition.cpp
sources/backend/linboimage.cpp
sources/backend/linbologger.cpp
sources/backend/linboos.cpp
sources/backend/linbotheme.cpp
sources/frontend/components/linbocheckbox.cpp
sources/frontend/components/linbocombobox.cpp
sources/frontend/components/linbodialog.cpp
sources/frontend/components/linbolineedit.cpp
sources/frontend/components/linboprogressbar.cpp
sources/frontend/components/linbopushbutton.cpp
sources/frontend/components/linbopushbuttonoverlay.cpp
sources/frontend/components/linboradiobutton.cpp
sources/frontend/components/linbostackedwidget.cpp
sources/frontend/components/linbosvgwidget.cpp
sources/frontend/components/linboterminal.cpp
sources/frontend/components/linbotextbrowser.cpp
sources/frontend/components/linbotoolbutton.cpp
sources/frontend/dialogs/linboconfirmationdialog.cpp
sources/frontend/dialogs/linboimagecreationdialog.cpp
sources/frontend/dialogs/linboimageuploaddialog.cpp
sources/frontend/dialogs/linbologindialog.cpp
sources/frontend/dialogs/linboregisterdialog.cpp
sources/frontend/dialogs/linboterminaldialog.cpp
sources/frontend/dialogs/linboupdatecachedialog.cpp
sources/frontend/linboclientinfo.cpp
sources/frontend/linboguitheme.cpp
sources/frontend/linbomainactions.cpp
sources/frontend/linbomainpage.cpp
sources/frontend/linboosselectbutton.cpp
sources/frontend/linboosselectionrow.cpp
sources/linbogui.cpp
sources/main.cpp
)
target_sources(linbo_gui PRIVATE ${SOURCE_FILES})
target_include_directories(linbo_gui PUBLIC
headers
headers/backend
headers/frontend
headers/frontend/components
headers/frontend/dialogs
)
target_link_libraries(linbo_gui PUBLIC
Qt::Core
Qt::Gui
Qt::Svg
Qt::SvgWidgets
Qt::Widgets
Qt::Xml
)
# Resources:
set(linbo_resource_files
"resources/fonts/PTSans-Bold.ttf"
"resources/fonts/PTSans-BoldItalic.ttf"
"resources/fonts/PTSans-Italic.ttf"
"resources/fonts/PTSans-Regular.ttf"
"resources/fonts/UbuntuMono-B.ttf"
"resources/fonts/UbuntuMono-BI.ttf"
"resources/fonts/UbuntuMono-R.ttf"
"resources/fonts/UbuntuMono-RI.ttf"
"resources/icons/dark/back.svg"
"resources/icons/dark/brandBottom.svg"
"resources/icons/dark/brandTop.svg"
"resources/icons/dark/cancel.svg"
"resources/icons/dark/checkBoxChecked.svg"
"resources/icons/dark/checkBoxUnchecked.svg"
"resources/icons/dark/desktop.svg"
"resources/icons/dark/image.svg"
"resources/icons/dark/logout.svg"
"resources/icons/dark/network.svg"
"resources/icons/dark/overlayChecked.svg"
"resources/icons/dark/overlayHovered.svg"
"resources/icons/dark/overlayPressed.svg"
"resources/icons/dark/partition.svg"
"resources/icons/dark/radioButtonChecked.svg"
"resources/icons/dark/radioButtonDisabled.svg"
"resources/icons/dark/radioButtonUnchecked.svg"
"resources/icons/dark/reboot.svg"
"resources/icons/dark/register.svg"
"resources/icons/dark/reinstall.svg"
"resources/icons/dark/settings.svg"
"resources/icons/dark/shutdown.svg"
"resources/icons/dark/start.svg"
"resources/icons/dark/sync.svg"
"resources/icons/dark/terminal.svg"
"resources/icons/dark/upload.svg"
"resources/icons/light/back.svg"
"resources/icons/light/brandBottom.svg"
"resources/icons/light/brandTop.svg"
"resources/icons/light/cancel.svg"
"resources/icons/light/checkBoxChecked.svg"
"resources/icons/light/checkBoxUnchecked.svg"
"resources/icons/light/desktop.svg"
"resources/icons/light/image.svg"
"resources/icons/light/logout.svg"
"resources/icons/light/network.svg"
"resources/icons/light/overlayChecked.svg"
"resources/icons/light/overlayHovered.svg"
"resources/icons/light/overlayPressed.svg"
"resources/icons/light/partition.svg"
"resources/icons/light/radioButtonChecked.svg"
"resources/icons/light/radioButtonDisabled.svg"
"resources/icons/light/radioButtonUnchecked.svg"
"resources/icons/light/reboot.svg"
"resources/icons/light/register.svg"
"resources/icons/light/reinstall.svg"
"resources/icons/light/settings.svg"
"resources/icons/light/shutdown.svg"
"resources/icons/light/start.svg"
"resources/icons/light/sync.svg"
"resources/icons/light/terminal.svg"
"resources/icons/light/upload.svg"
"resources/icons/universal/defaultOs.svg"
"resources/icons/universal/overlayImage.svg"
"resources/icons/universal/overlayKeyboardFocus.svg"
"resources/icons/universal/overlayReinstall.svg"
"resources/icons/universal/overlayStart.svg"
"resources/icons/universal/overlaySync.svg"
"resources/icons/universal/reinstallLegacy.svg"
"resources/icons/universal/startLegacy.svg"
"resources/icons/universal/syncLegacy.svg"
"resources/icons/universal/uploadLegacy.svg"
"resources/images/linbo_logo_small.svg"
)
qt6_add_resources(linbo_gui "linbo"
PREFIX
"/"
BASE
"resources"
FILES
${linbo_resource_files}
)
qt_add_translations(linbo_gui
TS_FILES
"resources/translations/linbo-gui/blank.ts"
"resources/translations/linbo-gui/af-ZA.ts"
"resources/translations/linbo-gui/ar-SA.ts"
"resources/translations/linbo-gui/ca-ES.ts"
"resources/translations/linbo-gui/cs-CZ.ts"
"resources/translations/linbo-gui/da-DK.ts"
"resources/translations/linbo-gui/de-DE.ts"
"resources/translations/linbo-gui/el-GR.ts"
"resources/translations/linbo-gui/en-GB.ts"
"resources/translations/linbo-gui/es-ES.ts"
"resources/translations/linbo-gui/fi-FI.ts"
"resources/translations/linbo-gui/fr-FR.ts"
"resources/translations/linbo-gui/he-IL.ts"
"resources/translations/linbo-gui/hu-HU.ts"
"resources/translations/linbo-gui/it-IT.ts"
"resources/translations/linbo-gui/ja-JP.ts"
"resources/translations/linbo-gui/ko-KR.ts"
"resources/translations/linbo-gui/nl-NL.ts"
"resources/translations/linbo-gui/no-NO.ts"
"resources/translations/linbo-gui/pl-PL.ts"
"resources/translations/linbo-gui/pt-BR.ts"
"resources/translations/linbo-gui/pt-PT.ts"
"resources/translations/linbo-gui/ro-RO.ts"
"resources/translations/linbo-gui/ru-RU.ts"
"resources/translations/linbo-gui/sr-SP.ts"
"resources/translations/linbo-gui/sv-SE.ts"
"resources/translations/linbo-gui/tr-TR.ts"
"resources/translations/linbo-gui/uk-UA.ts"
"resources/translations/linbo-gui/vi-VN.ts"
"resources/translations/linbo-gui/zh-CN.ts"
"resources/translations/linbo-gui/zh-TW.ts"
LRELEASE_OPTIONS
-idbased
)
if(CMAKE_BUILD_TYPE STREQUAL Debug)
target_compile_definitions(linbo_gui PUBLIC
TEST_ENV=\"${CMAKE_CURRENT_SOURCE_DIR}/fakeroot\"
)
endif()
install(TARGETS linbo_gui
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
qt_import_plugins(linbo_gui
INCLUDE Qt6::QLinuxFbIntegrationPlugin)