-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
186 lines (161 loc) · 4.99 KB
/
CMakeLists.txt
File metadata and controls
186 lines (161 loc) · 4.99 KB
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
# Generated from scale-conf.pro.
cmake_minimum_required(VERSION 3.16)
project(scale-conf VERSION 1.0 LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
if(NOT DEFINED INSTALL_EXAMPLESDIR)
set(INSTALL_EXAMPLESDIR "examples")
endif()
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}")
find_package(Qt6 6.7 REQUIRED COMPONENTS Core Gui Quick WebView Svg QuickControls2 Multimedia Sql Concurrent)
qt_standard_project_setup(REQUIRES 6.6)
# find_package(Qt${QT_VERSION_MAJOR} OPTIONAL_COMPONENTS AndroidExtras)
qt_add_executable(scale-conf WIN32 MACOSX_BUNDLE
cpp/main.cpp
)
qt_add_qml_module(scale-conf
URI Scaleconf
VERSION ${PROJECT_VERSION}
QML_FILES
qml/Main.qml
qml/components/modals/ErrorModal.qml
qml/components/modals/EventAlreadySavedModal.qml
qml/components/modals/ProgressModal.qml
qml/components/modals/ScheduleAddedModal.qml
qml/components/modals/ScheduleDeleteModal.qml
qml/components/navigation/NavButton.qml
qml/components/navigation/NavMenu.qml
qml/components/navigation/TopBar.qml
qml/pages/components/PresentationDetail/PresentationDetail.qml
qml/pages/components/ScheduleFilter/ScheduleFilter.qml
qml/pages/Contacts/Contacts.qml
qml/pages/Contacts/FilePicker.qml
qml/pages/Exhibitors/Exhibitors.qml
qml/pages/Home/AnnouncementsModel.qml
qml/pages/Home/Home.qml
qml/pages/Messages/Messages.qml
qml/pages/MySchedule/MySchedule.qml
qml/pages/QrScan/QrScan.qml
qml/pages/Schedule/Schedule.qml
qml/pages/Speakers/Speakers.qml
qml/pages/SpecialEvents/SpecialEvents.qml
qml/components/modals/CSVcopiedModal.qml
qml/pages/components/JSONListModel/JSONListModel.qml
qml/pages/Speakers/SpeakersModel.qml
qml/pages/Speakers/IndividualSpeaker.qml
qml/pages/Schedule/SignModel.qml
qml/pages/CampusMap/CampusMap.qml
qml/pages/QrScan/QrScanLoader.qml
qml/pages/Contacts/+android/Contacts.qml
js/database.js
js/initialize.js
js/feed.js
js/nav.js
js/utils.js
RESOURCES
img/navicon.svg
img/arrow-left.svg
img/HomePageBanner.svg
img/SCaLE_icons-01_logo.svg
img/SCaLE_icons-02_home.svg
img/SCaLE_icons-03_menu-hamburger.svg
img/SCaLE_placeholders_speakers_penguin-02.svg
img/SCaLE_placeholders_speakers_penguin.svg
img/SCaLE_placeholders_speakers_robot-01.svg
img/SCaLE_placeholders_speakers_robot-02.svg
img/SCaLE_placeholders_speakers_robot-03.svg
img/SCaLE_placeholders_speakers_robot-04.svg
fonts/AnonymousPro-Regular.ttf
fonts/AnonymousPro-Bold.ttf
fonts/SourceCodePro-Black.ttf
SOURCES
shareutils.h
shareutils.cpp
android/androidshareutils.h
android/androidshareutils.cpp
contactexporter.h
contactexporter.cpp
)
target_link_libraries(scale-conf PUBLIC
Qt::Core
Qt::Gui
Qt::Qml
Qt::Quick
Qt::Svg
Qt::WebView
PRIVATE
Qt::Multimedia
Qt::Sql
)
add_subdirectory(SCodes/src)
target_link_libraries(scale-conf PUBLIC SCodes)
# Resources:
set(js_resource_files
"js/database.js"
"js/initialize.js"
"js/feed.js"
"js/nav.js"
"js/utils.js"
)
qt6_add_resources(scale-conf "js"
PREFIX
"/js"
BASE
"js"
FILES
${js_resource_files}
)
set(img_resource_files
"img/HomePageBanner.svg"
"img/SCaLE_icons-01_logo.svg"
"img/SCaLE_icons-02_home.svg"
"img/SCaLE_icons-03_menu-hamburger.svg"
"img/SCaLE_placeholders_speakers_penguin-02.svg"
"img/SCaLE_placeholders_speakers_penguin.svg"
"img/SCaLE_placeholders_speakers_robot-01.svg"
"img/SCaLE_placeholders_speakers_robot-02.svg"
"img/SCaLE_placeholders_speakers_robot-03.svg"
"img/SCaLE_placeholders_speakers_robot-04.svg"
"img/arrow-left.svg"
)
qt6_add_resources(scale-conf "img"
PREFIX
"/img"
BASE
"img"
FILES
${img_resource_files}
)
set(fonts_resource_files
"fonts/AnonymousPro-Bold.ttf"
"fonts/AnonymousPro-Regular.ttf"
"fonts/SourceCodePro-Black.ttf"
)
qt6_add_resources(scale-conf "fonts"
PREFIX
"/fonts"
BASE
"fonts"
FILES
${fonts_resource_files}
)
if(ANDROID)
set_property(TARGET scale-conf APPEND PROPERTY QT_ANDROID_PACKAGE_SOURCE_DIR
${CMAKE_CURRENT_SOURCE_DIR}/android)
include(android_openssl/android_openssl.cmake)
add_android_openssl_libraries(scale-conf)
endif()
set(Qt5Core_DIR "$ENV{HOME}/Qt")
message(STATUS "Qt5Core_DIR->${Qt5Core_DIR}")
if(IOS)
include(${PROJECT_SOURCE_DIR}/FetchQtIosCMake.cmake)
add_qt_ios_app(scale-conf
NAME "SCALECONF"
BUNDLE_IDENTIFIER "com.knowikiapps.scaleconf"
)
endif()
install(TARGETS scale-conf
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)