blob: c794bf9dc718aadb05341d64cb188ab2e893b48e (
plain)
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
|
# Copyright (C) 2023 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
cmake_minimum_required(VERSION 3.16)
project(coffee LANGUAGES CXX)
if(NOT DEFINED INSTALL_EXAMPLESDIR)
set(INSTALL_EXAMPLESDIR "examples")
endif()
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}")
find_package(Qt6 REQUIRED COMPONENTS Core Gui Qml Quick)
qt_standard_project_setup(REQUIRES 6.6)
qt_add_executable(coffeemachine
main.cpp
)
set_source_files_properties(Colors.qml PROPERTIES
QT_QML_SINGLETON_TYPE TRUE
)
qt_add_qml_module(coffeemachine
URI demos.coffee
QML_FILES
ApplicationFlow.qml
ApplicationFlowForm.ui.qml
ChoosingCoffeeForm.ui.qml
ChoosingCoffee.qml
CoffeeCard.qml
CoffeeCardForm.ui.qml
Colors.qml
CustomButton.qml
CustomButtonForm.ui.qml
CustomSlider.qml
CustomSliderForm.ui.qml
CustomToolBar.qml
CustomToolBarForm.ui.qml
Cup.ui.qml
Home.qml
HomeForm.ui.qml
Insert.qml
InsertForm.ui.qml
main.qml
Progress.qml
ProgressForm.ui.qml
Ready.qml
ReadyForm.ui.qml
Settings.qml
SettingsForm.ui.qml
RESOURCES
qtquickcontrols2.conf
images/Cups/card_cup_dark.svg
images/Cups/card_cup_light.svg
images/Cups/dark_cup.svgz
images/Cups/home_dark.svg
images/Cups/home_light.svg
images/Cups/light_cup.svgz
images/icons/check.svg
images/icons/dark_mode_black_24dp.svg
images/icons/ellipse_dark.svg
images/icons/ellipse_light.svg
images/icons/keyboard_backspace_black.svg
images/icons/keyboard_backspace_black_left.svg
images/icons/keyboard_backspace_black_right.svg
images/icons/keyboard_backspace_white_left.svg
images/icons/keyboard_backspace_white_right.svg
images/icons/light_mode_black_24dp.svg
images/icons/Polygon.svg
images/icons/Qt-logo-white-transparent.svg
images/Ingredients/espresso_coffee.svg
images/Ingredients/Milk_foam.svg
images/Ingredients/milk.svg
images/Ingredients/sugar.svg
)
if(ANDROID)
set_target_properties(coffeemachine PROPERTIES
QT_ANDROID_PACKAGE_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/android")
endif()
set_target_properties(coffeemachine PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
if(IOS)
set(asset_catalog_path "ios/Assets.xcassets")
target_sources(coffeemachine PRIVATE "${asset_catalog_path}")
set_source_files_properties(${asset_catalog_path} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
set_target_properties(coffeemachine
PROPERTIES XCODE_ATTRIBUTE_ASSETCATALOG_COMPILER_APPICON_NAME AppIcon)
endif()
target_link_libraries(coffeemachine PRIVATE
Qt6::Core
Qt6::Gui
Qt6::Qml
Qt6::Quick
)
install(TARGETS coffeemachine
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
|