diff options
author | Leander Beernaert <[email protected]> | 2019-09-24 13:26:43 +0200 |
---|---|---|
committer | Alexandru Croitor <[email protected]> | 2019-10-08 16:25:53 +0000 |
commit | 833d8c305b8cc01ab2d7958a2ba5a061a9e966ef (patch) | |
tree | 379903422009964dd25182b99ef10249a4b59dbb | |
parent | 2d4f2f1f4a4ff2f6e6189d9206875927d529f4c2 (diff) |
Conversion of QtQuickControls2 examples
Initial Conversion of QtQuickControls2 examples.
Change-Id: I21ddf792d039dc26e4ba58d8592101eb131618d3
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Alexandru Croitor <[email protected]>
17 files changed, 1461 insertions, 0 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt new file mode 100644 index 0000000000..80aa41e999 --- /dev/null +++ b/examples/CMakeLists.txt @@ -0,0 +1,9 @@ +# Generated from examples.pro. + +find_package(Qt6 COMPONENTS Sql) # special case + +qt_examples_build_begin() + +add_subdirectory(quickcontrols2) + +qt_examples_build_end() diff --git a/examples/quickcontrols2/CMakeLists.txt b/examples/quickcontrols2/CMakeLists.txt new file mode 100644 index 0000000000..7ca535e9ef --- /dev/null +++ b/examples/quickcontrols2/CMakeLists.txt @@ -0,0 +1,14 @@ +# Generated from quickcontrols2.pro. + +add_subdirectory(gallery) +add_subdirectory(chattutorial) +add_subdirectory(texteditor) +add_subdirectory(contactlist) +add_subdirectory(sidepanel) +add_subdirectory(swipetoremove) +add_subdirectory(wearable) +add_subdirectory(imagine/automotive) +add_subdirectory(imagine/musicplayer) +if(TARGET Qt::Widgets) + add_subdirectory(flatstyle) +endif() diff --git a/examples/quickcontrols2/chattutorial/CMakeLists.txt b/examples/quickcontrols2/chattutorial/CMakeLists.txt new file mode 100644 index 0000000000..9a4bd9cb11 --- /dev/null +++ b/examples/quickcontrols2/chattutorial/CMakeLists.txt @@ -0,0 +1,7 @@ +# Generated from chattutorial.pro. + +add_subdirectory(chapter1-settingup) +add_subdirectory(chapter2-lists) +add_subdirectory(chapter3-navigation) +add_subdirectory(chapter4-models) +add_subdirectory(chapter5-styling) diff --git a/examples/quickcontrols2/chattutorial/chapter1-settingup/CMakeLists.txt b/examples/quickcontrols2/chattutorial/chapter1-settingup/CMakeLists.txt new file mode 100644 index 0000000000..641db546b0 --- /dev/null +++ b/examples/quickcontrols2/chattutorial/chapter1-settingup/CMakeLists.txt @@ -0,0 +1,46 @@ +# Generated from chapter1-settingup.pro. + +cmake_minimum_required(VERSION 3.14) +project(chapter1-settingup LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Qml) +find_package(Qt6 COMPONENTS Quick) + +add_qt_gui_executable(chapter1-settingup + main.cpp +) +target_link_libraries(chapter1-settingup PUBLIC + Qt::Core + Qt::Gui + Qt::Qml + Qt::Quick +) + +# Resources: +set(qml_resource_files + "main.qml" +) + +qt6_add_resources(chapter1-settingup "qml" + PREFIX + "/" + FILES + ${qml_resource_files} +) + + +install(TARGETS chapter1-settingup + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/quickcontrols2/chattutorial/chapter2-lists/CMakeLists.txt b/examples/quickcontrols2/chattutorial/chapter2-lists/CMakeLists.txt new file mode 100644 index 0000000000..1913ba19f0 --- /dev/null +++ b/examples/quickcontrols2/chattutorial/chapter2-lists/CMakeLists.txt @@ -0,0 +1,105 @@ +# Generated from chapter2-lists.pro. + +cmake_minimum_required(VERSION 3.14) +project(chapter2-lists LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Qml) +find_package(Qt6 COMPONENTS Quick) + +add_qt_gui_executable(chapter2-lists + main.cpp +) +target_link_libraries(chapter2-lists PUBLIC + Qt::Core + Qt::Gui + Qt::Qml + Qt::Quick +) + +# Resources: +set(qml_resource_files + "main.qml" +) + +qt6_add_resources(chapter2-lists "qml" + PREFIX + "/" + FILES + ${qml_resource_files} +) +set_source_files_properties("../shared/Albert_Einstein.png" + PROPERTIES QT_RESOURCE_ALIAS "Albert_Einstein.png" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/Ernest_Hemingway.png" + PROPERTIES QT_RESOURCE_ALIAS "Ernest_Hemingway.png" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/Hans_Gude.png" + PROPERTIES QT_RESOURCE_ALIAS "Hans_Gude.png" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set(shared_resource_files + "Albert_Einstein.png" + "Ernest_Hemingway.png" + "Hans_Gude.png" +) + +qt6_add_resources(chapter2-lists "shared" + PREFIX + "/" + BASE + "../shared" + FILES + ${shared_resource_files} +) + + +install(TARGETS chapter2-lists + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/quickcontrols2/chattutorial/chapter3-navigation/CMakeLists.txt b/examples/quickcontrols2/chattutorial/chapter3-navigation/CMakeLists.txt new file mode 100644 index 0000000000..ddea895741 --- /dev/null +++ b/examples/quickcontrols2/chattutorial/chapter3-navigation/CMakeLists.txt @@ -0,0 +1,107 @@ +# Generated from chapter3-navigation.pro. + +cmake_minimum_required(VERSION 3.14) +project(chapter3-navigation LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Qml) +find_package(Qt6 COMPONENTS Quick) + +add_qt_gui_executable(chapter3-navigation + main.cpp +) +target_link_libraries(chapter3-navigation PUBLIC + Qt::Core + Qt::Gui + Qt::Qml + Qt::Quick +) + +# Resources: +set(qml_resource_files + "ContactPage.qml" + "ConversationPage.qml" + "main.qml" +) + +qt6_add_resources(chapter3-navigation "qml" + PREFIX + "/" + FILES + ${qml_resource_files} +) +set_source_files_properties("../shared/Albert_Einstein.png" + PROPERTIES QT_RESOURCE_ALIAS "Albert_Einstein.png" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/Ernest_Hemingway.png" + PROPERTIES QT_RESOURCE_ALIAS "Ernest_Hemingway.png" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/Hans_Gude.png" + PROPERTIES QT_RESOURCE_ALIAS "Hans_Gude.png" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set(shared_resource_files + "Albert_Einstein.png" + "Ernest_Hemingway.png" + "Hans_Gude.png" +) + +qt6_add_resources(chapter3-navigation "shared" + PREFIX + "/" + BASE + "../shared" + FILES + ${shared_resource_files} +) + + +install(TARGETS chapter3-navigation + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/quickcontrols2/chattutorial/chapter4-models/CMakeLists.txt b/examples/quickcontrols2/chattutorial/chapter4-models/CMakeLists.txt new file mode 100644 index 0000000000..d202d4b0d6 --- /dev/null +++ b/examples/quickcontrols2/chattutorial/chapter4-models/CMakeLists.txt @@ -0,0 +1,111 @@ +# Generated from chapter4-models.pro. + +cmake_minimum_required(VERSION 3.14) +project(chapter4-models LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Qml) +find_package(Qt6 COMPONENTS Quick) +find_package(Qt6 COMPONENTS Sql) + +add_qt_gui_executable(chapter4-models + main.cpp + sqlcontactmodel.cpp sqlcontactmodel.h + sqlconversationmodel.cpp sqlconversationmodel.h +) +target_link_libraries(chapter4-models PUBLIC + Qt::Core + Qt::Gui + Qt::Qml + Qt::Quick + Qt::Sql +) + +# Resources: +set(qml_resource_files + "ContactPage.qml" + "ConversationPage.qml" + "main.qml" +) + +qt6_add_resources(chapter4-models "qml" + PREFIX + "/" + FILES + ${qml_resource_files} +) +set_source_files_properties("../shared/Albert_Einstein.png" + PROPERTIES QT_RESOURCE_ALIAS "Albert_Einstein.png" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/Ernest_Hemingway.png" + PROPERTIES QT_RESOURCE_ALIAS "Ernest_Hemingway.png" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/Hans_Gude.png" + PROPERTIES QT_RESOURCE_ALIAS "Hans_Gude.png" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set(shared_resource_files + "Albert_Einstein.png" + "Ernest_Hemingway.png" + "Hans_Gude.png" +) + +qt6_add_resources(chapter4-models "shared" + PREFIX + "/" + BASE + "../shared" + FILES + ${shared_resource_files} +) + + +install(TARGETS chapter4-models + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/quickcontrols2/chattutorial/chapter5-styling/CMakeLists.txt b/examples/quickcontrols2/chattutorial/chapter5-styling/CMakeLists.txt new file mode 100644 index 0000000000..127aa28abc --- /dev/null +++ b/examples/quickcontrols2/chattutorial/chapter5-styling/CMakeLists.txt @@ -0,0 +1,114 @@ +# Generated from chapter5-styling.pro. + +cmake_minimum_required(VERSION 3.14) +project(chapter5-styling LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Qml) +find_package(Qt6 COMPONENTS Quick) +find_package(Qt6 COMPONENTS Sql) + +add_qt_gui_executable(chapter5-styling + main.cpp + sqlcontactmodel.cpp sqlcontactmodel.h + sqlconversationmodel.cpp sqlconversationmodel.h +) +target_link_libraries(chapter5-styling PUBLIC + Qt::Core + Qt::Gui + Qt::Qml + Qt::Quick + Qt::Sql +) + +# Resources: +set(qml_resource_files + "+material/ChatToolBar.qml" + "ChatToolBar.qml" + "ContactPage.qml" + "ConversationPage.qml" + "main.qml" + "qtquickcontrols2.conf" +) + +qt6_add_resources(chapter5-styling "qml" + PREFIX + "/" + FILES + ${qml_resource_files} +) +set_source_files_properties("../shared/Albert_Einstein.png" + PROPERTIES QT_RESOURCE_ALIAS "Albert_Einstein.png" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/Ernest_Hemingway.png" + PROPERTIES QT_RESOURCE_ALIAS "Ernest_Hemingway.png" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/Hans_Gude.png" + PROPERTIES QT_RESOURCE_ALIAS "Hans_Gude.png" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set_source_files_properties("../shared/[email protected]" + PROPERTIES QT_RESOURCE_ALIAS "[email protected]" +) +set(shared_resource_files + "Albert_Einstein.png" + "Ernest_Hemingway.png" + "Hans_Gude.png" +) + +qt6_add_resources(chapter5-styling "shared" + PREFIX + "/" + BASE + "../shared" + FILES + ${shared_resource_files} +) + + +install(TARGETS chapter5-styling + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/quickcontrols2/contactlist/CMakeLists.txt b/examples/quickcontrols2/contactlist/CMakeLists.txt new file mode 100644 index 0000000000..e0efa6a5f0 --- /dev/null +++ b/examples/quickcontrols2/contactlist/CMakeLists.txt @@ -0,0 +1,51 @@ +# Generated from contactlist.pro. + +cmake_minimum_required(VERSION 3.14) +project(contactlist LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Quick) + +add_qt_gui_executable(contactlist + contactmodel.cpp contactmodel.h + main.cpp +) +target_link_libraries(contactlist PUBLIC + Qt::Core + Qt::Gui + Qt::Quick +) + +# Resources: +set(qmake_immediate_resource_files + "ContactDelegate.ui.qml" + "ContactDialog.qml" + "ContactForm.ui.qml" + "ContactView.ui.qml" + "SectionDelegate.ui.qml" + "contactlist.qml" + "designer/Backend/ContactModel.qml" +) + +qt6_add_resources(contactlist "qmake_immediate" + PREFIX + "/" + FILES + ${qmake_immediate_resource_files} +) + + +install(TARGETS contactlist + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/quickcontrols2/flatstyle/CMakeLists.txt b/examples/quickcontrols2/flatstyle/CMakeLists.txt new file mode 100644 index 0000000000..87cc012d48 --- /dev/null +++ b/examples/quickcontrols2/flatstyle/CMakeLists.txt @@ -0,0 +1,55 @@ +# Generated from flatstyle.pro. + +cmake_minimum_required(VERSION 3.14) +project(flatstyle LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Quick) +find_package(Qt6 COMPONENTS QuickControls2) +find_package(Qt6 COMPONENTS Widgets) + +add_qt_gui_executable(flatstyle + main.cpp +) +target_link_libraries(flatstyle PUBLIC + Qt::Core + Qt::Gui + Qt::Quick + Qt::QuickControls2 + Qt::Widgets +) + +# Resources: +set(qmake_immediate_resource_files + "Flat/Button.qml" + "Flat/CheckBox.qml" + "Flat/Switch.qml" + "MainForm.ui.qml" + "flatstyle.qml" + "imports/Theme/Theme.qml" + "imports/Theme/qmldir" + "qtquickcontrols2.conf" +) + +qt6_add_resources(flatstyle "qmake_immediate" + PREFIX + "/" + FILES + ${qmake_immediate_resource_files} +) + + +install(TARGETS flatstyle + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/quickcontrols2/gallery/CMakeLists.txt b/examples/quickcontrols2/gallery/CMakeLists.txt new file mode 100644 index 0000000000..a74b990090 --- /dev/null +++ b/examples/quickcontrols2/gallery/CMakeLists.txt @@ -0,0 +1,99 @@ +# Generated from gallery.pro. + +cmake_minimum_required(VERSION 3.14) +project(gallery LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Quick) +find_package(Qt6 COMPONENTS QuickControls2) + +add_qt_gui_executable(gallery + gallery.cpp +) +target_link_libraries(gallery PUBLIC + Qt::Core + Qt::Gui + Qt::Quick + Qt::QuickControls2 +) + +# Resources: +set(qmake_immediate_resource_files + "gallery.qml" + "icons/gallery/20x20/back.png" + "icons/gallery/20x20/drawer.png" + "icons/gallery/20x20/menu.png" + "icons/gallery/20x20@2/back.png" + "icons/gallery/20x20@2/drawer.png" + "icons/gallery/20x20@2/menu.png" + "icons/gallery/20x20@3/back.png" + "icons/gallery/20x20@3/drawer.png" + "icons/gallery/20x20@3/menu.png" + "icons/gallery/20x20@4/back.png" + "icons/gallery/20x20@4/drawer.png" + "icons/gallery/20x20@4/menu.png" + "icons/gallery/index.theme" + "images/arrow.png" + "images/[email protected]" + "images/[email protected]" + "images/[email protected]" + "images/arrows.png" + "images/[email protected]" + "images/[email protected]" + "images/[email protected]" + "images/qt-logo.png" + "images/[email protected]" + "images/[email protected]" + "images/[email protected]" + "pages/BusyIndicatorPage.qml" + "pages/ButtonPage.qml" + "pages/CheckBoxPage.qml" + "pages/ComboBoxPage.qml" + "pages/DelayButtonPage.qml" + "pages/DelegatePage.qml" + "pages/DialPage.qml" + "pages/DialogPage.qml" + "pages/FramePage.qml" + "pages/GroupBoxPage.qml" + "pages/PageIndicatorPage.qml" + "pages/ProgressBarPage.qml" + "pages/RadioButtonPage.qml" + "pages/RangeSliderPage.qml" + "pages/ScrollBarPage.qml" + "pages/ScrollIndicatorPage.qml" + "pages/ScrollablePage.qml" + "pages/SliderPage.qml" + "pages/SpinBoxPage.qml" + "pages/StackViewPage.qml" + "pages/SwipeViewPage.qml" + "pages/SwitchPage.qml" + "pages/TabBarPage.qml" + "pages/TextAreaPage.qml" + "pages/TextFieldPage.qml" + "pages/ToolTipPage.qml" + "pages/TumblerPage.qml" + "qtquickcontrols2.conf" +) + +qt6_add_resources(gallery "qmake_immediate" + PREFIX + "/" + FILES + ${qmake_immediate_resource_files} +) + + +install(TARGETS gallery + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/quickcontrols2/imagine/automotive/CMakeLists.txt b/examples/quickcontrols2/imagine/automotive/CMakeLists.txt new file mode 100644 index 0000000000..a2a1a984bf --- /dev/null +++ b/examples/quickcontrols2/imagine/automotive/CMakeLists.txt @@ -0,0 +1,184 @@ +# Generated from automotive.pro. + +cmake_minimum_required(VERSION 3.14) +project(automotive LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Quick) +find_package(Qt6 COMPONENTS QuickControls2) + +add_qt_gui_executable(automotive + automotive.cpp +) +target_link_libraries(automotive PUBLIC + Qt::Core + Qt::Gui + Qt::Quick + Qt::QuickControls2 +) + +# Resources: +set(icons_resource_files + "automotive/44x44/air-con.png" + "automotive/44x44/command.png" + "automotive/44x44/message.png" + "automotive/44x44/music.png" + "automotive/44x44/seats.png" + "automotive/44x44/settings.png" + "automotive/44x44/statistics.png" + "automotive/44x44/windows.png" + "automotive/44x44@2/air-con.png" + "automotive/44x44@2/command.png" + "automotive/44x44@2/message.png" + "automotive/44x44@2/music.png" + "automotive/44x44@2/navigation.png" + "automotive/44x44@2/seats.png" + "automotive/44x44@2/settings.png" + "automotive/44x44@2/statistics.png" + "automotive/44x44@2/windows.png" + "automotive/icons.svg" + "automotive/index.theme" + "car.png" + "warning.png" + "weather.png" +) + +qt6_add_resources(automotive "icons" + PREFIX + "/icons" + BASE + "icons" + FILES + ${icons_resource_files} +) +set(imagine-assets_resource_files + "applicationwindow-background.png" + "button-background-checked-hovered.9.png" + "button-background-checked.9.png" + "button-background-hovered.9.png" + "button-background-pressed.9.png" + "button-background.9.png" + "dial-background-hovered.png" + "dial-background-pressed.png" + "dial-background.png" + "dial-handle-pressed.png" + "dial-handle.png" + "frame-background.9.png" + "itemdelegate-background-checked.9.png" + "itemdelegate-background-hovered.9.png" + "itemdelegate-background-pressed.9.png" + "itemdelegate-background.9.png" + "radiobutton-indicator-checked-hovered.png" + "radiobutton-indicator-checked-pressed.png" + "radiobutton-indicator-checked.png" + "radiobutton-indicator-hovered.png" + "radiobutton-indicator-pressed.png" + "radiobutton-indicator.png" + "scrollindicator-handle.png" + "slider-background-horizontal.9.png" + "slider-handle-hovered.png" + "slider-handle-pressed.png" + "slider-handle.png" + "slider-progress-horizontal-pressed.9.png" + "slider-progress-horizontal.9.png" + "switchdelegate-background.9.png" + "switchdelegate-handle-checked-hovered.png" + "switchdelegate-handle-checked.png" + "switchdelegate-handle-hovered.png" + "switchdelegate-handle-pressed.png" + "switchdelegate-handle.png" + "switchdelegate-indicator-pressed.png" + "switchdelegate-indicator.png" + "toolseparator-separator-vertical.9.png" +) + +qt6_add_resources(automotive "imagine-assets" + PREFIX + "/imagine-assets" + BASE + "imagine-assets" + FILES + ${imagine-assets_resource_files} +) +set(qml_resource_files + "CustomGlow.qml" + "FeatureButton.qml" + "GlowingLabel.qml" + "automotive.qml" +) + +qt6_add_resources(automotive "qml" + PREFIX + "/qml" + BASE + "qml" + FILES + ${qml_resource_files} +) +set(qmake_immediate_resource_files + "qtquickcontrols2.conf" +) + +qt6_add_resources(automotive "qmake_immediate" + PREFIX + "/" + FILES + ${qmake_immediate_resource_files} +) + + +install(TARGETS automotive + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/quickcontrols2/imagine/musicplayer/CMakeLists.txt b/examples/quickcontrols2/imagine/musicplayer/CMakeLists.txt new file mode 100644 index 0000000000..dab64ad092 --- /dev/null +++ b/examples/quickcontrols2/imagine/musicplayer/CMakeLists.txt @@ -0,0 +1,215 @@ +# Generated from musicplayer.pro. + +cmake_minimum_required(VERSION 3.14) +project(musicplayer LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Quick) +find_package(Qt6 COMPONENTS QuickControls2) + +add_qt_gui_executable(musicplayer + musicplayer.cpp +) +target_link_libraries(musicplayer PUBLIC + Qt::Core + Qt::Gui + Qt::Quick + Qt::QuickControls2 +) + +# Resources: +set(icons_resource_files + "musicplayer/32x32/bluetooth.png" + "musicplayer/32x32/cart.png" + "musicplayer/32x32/cloud.png" + "musicplayer/32x32/favorite.png" + "musicplayer/32x32/filter.png" + "musicplayer/32x32/folder.png" + "musicplayer/32x32/message.png" + "musicplayer/32x32/music.png" + "musicplayer/32x32/next.png" + "musicplayer/32x32/pause.png" + "musicplayer/32x32/power.png" + "musicplayer/32x32/previous.png" + "musicplayer/32x32/repeat.png" + "musicplayer/32x32/save.png" + "musicplayer/32x32/settings.png" + "musicplayer/32x32/shuffle.png" + "musicplayer/32x32/stop.png" + "musicplayer/32x32@2/bluetooth.png" + "musicplayer/32x32@2/cart.png" + "musicplayer/32x32@2/cloud.png" + "musicplayer/32x32@2/favorite.png" + "musicplayer/32x32@2/filter.png" + "musicplayer/32x32@2/folder.png" + "musicplayer/32x32@2/grid.png" + "musicplayer/32x32@2/message.png" + "musicplayer/32x32@2/music.png" + "musicplayer/32x32@2/next.png" + "musicplayer/32x32@2/pause.png" + "musicplayer/32x32@2/power.png" + "musicplayer/32x32@2/previous.png" + "musicplayer/32x32@2/repeat.png" + "musicplayer/32x32@2/save.png" + "musicplayer/32x32@2/settings.png" + "musicplayer/32x32@2/shuffle.png" + "musicplayer/32x32@2/stop.png" + "musicplayer/index.theme" +) + +qt6_add_resources(musicplayer "icons" + PREFIX + "/icons" + BASE + "icons" + FILES + ${icons_resource_files} +) +set(imagine-assets_resource_files + "applicationwindow-background.png" + "button-background-checked-hovered.9.png" + "button-background-checked.9.png" + "button-background-disabled.9.png" + "button-background-hovered.9.png" + "button-background-pressed.9.png" + "button-background.9.png" + "combobox-background-hovered.9.png" + "combobox-background-open.9.png" + "combobox-background-pressed.9.png" + "combobox-background.9.png" + "combobox-indicator-hovered.png" + "combobox-indicator-open.png" + "combobox-indicator-pressed.png" + "combobox-indicator.png" + "combobox-popup.9.png" + "dial-background-hovered.png" + "dial-background-pressed.png" + "dial-background.png" + "dial-handle-pressed.png" + "dial-handle.png" + "frame-background.9.png" + "itemdelegate-background-checked.9.png" + "itemdelegate-background-disabled.9.png" + "itemdelegate-background-hovered.9.png" + "itemdelegate-background-pressed.9.png" + "itemdelegate-background.9.png" + "roundbutton-background-checked-hovered.png" + "roundbutton-background-checked.png" + "roundbutton-background-disabled.png" + "roundbutton-background-hovered.png" + "roundbutton-background-pressed.png" + "roundbutton-background.png" + "scrollbar-handle-interactive-hovered.png" + "scrollbar-handle-interactive-pressed.png" + "scrollbar-handle-interactive.png" + "slider-background-horizontal-disabled.9.png" + "slider-background-horizontal.9.png" + "slider-background-vertical-disabled.9.png" + "slider-background-vertical.9.png" + "slider-handle-disabled.png" + "slider-handle-hovered.png" + "slider-handle.png" + "slider-progress-horizontal.9.png" + "slider-progress-vertical-disabled.9.png" + "slider-progress-vertical.9.png" + "textfield-background-disabled.9.png" + "textfield-background.9.png" + "toolbar-background.9.png" + "toolbutton-background-checked-hovered.9.png" + "toolbutton-background-checked.9.png" + "toolbutton-background-hovered.9.png" + "toolbutton-background-pressed.9.png" + "toolbutton-background.9.png" + "tooltip-background.9.png" +) + +qt6_add_resources(musicplayer "imagine-assets" + PREFIX + "/imagine-assets" + BASE + "imagine-assets" + FILES + ${imagine-assets_resource_files} +) +set(qmake_immediate_resource_files + "images/album-cover.jpg" + "musicplayer.qml" + "qtquickcontrols2.conf" +) + +qt6_add_resources(musicplayer "qmake_immediate" + PREFIX + "/" + FILES + ${qmake_immediate_resource_files} +) + + +install(TARGETS musicplayer + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/quickcontrols2/sidepanel/CMakeLists.txt b/examples/quickcontrols2/sidepanel/CMakeLists.txt new file mode 100644 index 0000000000..f792a5f13e --- /dev/null +++ b/examples/quickcontrols2/sidepanel/CMakeLists.txt @@ -0,0 +1,50 @@ +# Generated from sidepanel.pro. + +cmake_minimum_required(VERSION 3.14) +project(sidepanel LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Quick) + +add_qt_gui_executable(sidepanel + sidepanel.cpp +) +target_link_libraries(sidepanel PUBLIC + Qt::Core + Qt::Gui + Qt::Quick +) + +# Resources: +set(qmake_immediate_resource_files + "doc/images/qtquickcontrols2-sidepanel-landscape.png" + "doc/images/qtquickcontrols2-sidepanel-portrait.png" + "images/qt-logo.png" + "images/[email protected]" + "images/[email protected]" + "images/[email protected]" + "sidepanel.qml" +) + +qt6_add_resources(sidepanel "qmake_immediate" + PREFIX + "/" + FILES + ${qmake_immediate_resource_files} +) + + +install(TARGETS sidepanel + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/quickcontrols2/swipetoremove/CMakeLists.txt b/examples/quickcontrols2/swipetoremove/CMakeLists.txt new file mode 100644 index 0000000000..d23619eed5 --- /dev/null +++ b/examples/quickcontrols2/swipetoremove/CMakeLists.txt @@ -0,0 +1,45 @@ +# Generated from swipetoremove.pro. + +cmake_minimum_required(VERSION 3.14) +project(swipetoremove LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Qml) + +add_qt_gui_executable(swipetoremove + swipetoremove.cpp +) +target_link_libraries(swipetoremove PUBLIC + Qt::Core + Qt::Gui + Qt::Qml +) + +# Resources: +set(qmake_immediate_resource_files + "fonts/fontello.ttf" + "swipetoremove.qml" +) + +qt6_add_resources(swipetoremove "qmake_immediate" + PREFIX + "/" + FILES + ${qmake_immediate_resource_files} +) + + +install(TARGETS swipetoremove + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/quickcontrols2/texteditor/CMakeLists.txt b/examples/quickcontrols2/texteditor/CMakeLists.txt new file mode 100644 index 0000000000..3ac0a49814 --- /dev/null +++ b/examples/quickcontrols2/texteditor/CMakeLists.txt @@ -0,0 +1,53 @@ +# Generated from texteditor.pro. + +cmake_minimum_required(VERSION 3.14) +project(texteditor LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Quick) +find_package(Qt6 COMPONENTS QuickControls2) + +add_qt_gui_executable(texteditor + documenthandler.cpp documenthandler.h + texteditor.cpp +) +target_link_libraries(texteditor PUBLIC + Qt::Core + Qt::Gui + Qt::Quick + Qt::QuickControls2 +) + +# Resources: +set(texteditor_resource_files + "+touch/texteditor.html" + "fonts/fontello.ttf" + "images/qt-logo.png" + "qml/+touch/texteditor.qml" + "qml/texteditor.qml" + "qtquickcontrols2.conf" + "texteditor.html" +) + +qt6_add_resources(texteditor "texteditor" + PREFIX + "/" + FILES + ${texteditor_resource_files} +) + + +install(TARGETS texteditor + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/quickcontrols2/wearable/CMakeLists.txt b/examples/quickcontrols2/wearable/CMakeLists.txt new file mode 100644 index 0000000000..912a9dd3fe --- /dev/null +++ b/examples/quickcontrols2/wearable/CMakeLists.txt @@ -0,0 +1,196 @@ +# Generated from wearable.pro. + +cmake_minimum_required(VERSION 3.14) +project(wearable LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Quick) +find_package(Qt6 COMPONENTS QuickControls2) + +add_qt_gui_executable(wearable + wearable.cpp +) +target_link_libraries(wearable PUBLIC + Qt::Core + Qt::Gui + Qt::Quick + Qt::QuickControls2 +) + +# Resources: +set(wearable_resource_files + "icons/wearable/36x36/alarms.png" + "icons/wearable/36x36/fitness.png" + "icons/wearable/36x36/navigation.png" + "icons/wearable/36x36/notifications.png" + "icons/wearable/36x36/settings.png" + "icons/wearable/36x36/weather.png" + "icons/wearable/36x36/worldclock.png" + "icons/wearable/36x36@2/alarms.png" + "icons/wearable/36x36@2/fitness.png" + "icons/wearable/36x36@2/navigation.png" + "icons/wearable/36x36@2/notifications.png" + "icons/wearable/36x36@2/settings.png" + "icons/wearable/36x36@2/weather.png" + "icons/wearable/36x36@2/worldclock.png" + "icons/wearable/index.theme" + "images/back.png" + "images/[email protected]" + "images/background-dark.png" + "images/background-light.png" + "images/home.png" + "images/[email protected]" + "qml/Alarms/AlarmsPage.qml" + "qml/DemoMode.qml" + "qml/DemoModeIndicator.qml" + "qml/Fitness/FitnessPage.qml" + "qml/Fitness/fitness.js" + "qml/Fitness/images/man-running-dark.png" + "qml/Fitness/images/[email protected]" + "qml/Fitness/images/man-running-light.png" + "qml/Fitness/images/[email protected]" + "qml/Fitness/images/man-walking-dark.png" + "qml/Fitness/images/[email protected]" + "qml/Fitness/images/man-walking-light.png" + "qml/Fitness/images/[email protected]" + "qml/LauncherPage.qml" + "qml/NaviButton.qml" + "qml/Navigation/NavigationPage.qml" + "qml/Navigation/RouteElement.qml" + "qml/Navigation/images/end.png" + "qml/Navigation/images/[email protected]" + "qml/Navigation/images/leftturn-dark.png" + "qml/Navigation/images/[email protected]" + "qml/Navigation/images/leftturn-light.png" + "qml/Navigation/images/[email protected]" + "qml/Navigation/images/navigation-dark.png" + "qml/Navigation/images/[email protected]" + "qml/Navigation/images/navigation-light.png" + "qml/Navigation/images/[email protected]" + "qml/Navigation/images/rightturn-dark.png" + "qml/Navigation/images/[email protected]" + "qml/Navigation/images/rightturn-light.png" + "qml/Navigation/images/[email protected]" + "qml/Navigation/images/start.png" + "qml/Navigation/images/[email protected]" + "qml/Navigation/images/straight-dark.png" + "qml/Navigation/images/[email protected]" + "qml/Navigation/images/straight-light.png" + "qml/Navigation/images/[email protected]" + "qml/Navigation/images/uturn.png" + "qml/Navigation/images/[email protected]" + "qml/Navigation/navigation.js" + "qml/Navigation/walk_route.json" + "qml/Notifications/NotificationsPage.qml" + "qml/Notifications/images/avatarf-dark.png" + "qml/Notifications/images/[email protected]" + "qml/Notifications/images/avatarf-light.png" + "qml/Notifications/images/[email protected]" + "qml/Notifications/images/avatarm-dark.png" + "qml/Notifications/images/[email protected]" + "qml/Notifications/images/avatarm-light.png" + "qml/Notifications/images/[email protected]" + "qml/Notifications/images/missedcall-dark.png" + "qml/Notifications/images/[email protected]" + "qml/Notifications/images/missedcall-light.png" + "qml/Notifications/images/[email protected]" + "qml/Notifications/notifications.js" + "qml/Settings/SettingsPage.qml" + "qml/Settings/images/bluetooth-dark.png" + "qml/Settings/images/[email protected]" + "qml/Settings/images/bluetooth-light.png" + "qml/Settings/images/[email protected]" + "qml/Settings/images/brightness-dark.png" + "qml/Settings/images/[email protected]" + "qml/Settings/images/brightness-light.png" + "qml/Settings/images/[email protected]" + "qml/Settings/images/demo-mode-dark.png" + "qml/Settings/images/[email protected]" + "qml/Settings/images/demo-mode-light.png" + "qml/Settings/images/[email protected]" + "qml/Settings/images/demo-mode-white.png" + "qml/Settings/images/[email protected]" + "qml/Settings/images/theme-dark.png" + "qml/Settings/images/[email protected]" + "qml/Settings/images/theme-light.png" + "qml/Settings/images/[email protected]" + "qml/Settings/images/wifi-dark.png" + "qml/Settings/images/[email protected]" + "qml/Settings/images/wifi-light.png" + "qml/Settings/images/[email protected]" + "qml/Style/PageIndicator.qml" + "qml/Style/Slider.qml" + "qml/Style/Switch.qml" + "qml/Style/UIStyle.qml" + "qml/Style/qmldir" + "qml/SwipeViewPage.qml" + "qml/Weather/WeatherPage.qml" + "qml/Weather/images/humidity-dark.png" + "qml/Weather/images/[email protected]" + "qml/Weather/images/humidity-light.png" + "qml/Weather/images/[email protected]" + "qml/Weather/images/pressure-dark.png" + "qml/Weather/images/[email protected]" + "qml/Weather/images/pressure-light.png" + "qml/Weather/images/[email protected]" + "qml/Weather/images/sunrise-dark.png" + "qml/Weather/images/[email protected]" + "qml/Weather/images/sunrise-light.png" + "qml/Weather/images/[email protected]" + "qml/Weather/images/sunset-dark.png" + "qml/Weather/images/[email protected]" + "qml/Weather/images/sunset-light.png" + "qml/Weather/images/[email protected]" + "qml/Weather/images/temperature-dark.png" + "qml/Weather/images/[email protected]" + "qml/Weather/images/temperature-light.png" + "qml/Weather/images/[email protected]" + "qml/Weather/images/wind-dark.png" + "qml/Weather/images/[email protected]" + "qml/Weather/images/wind-light.png" + "qml/Weather/images/[email protected]" + "qml/Weather/weather.js" + "qml/Weather/weather.json" + "qml/WorldClock/Clock.qml" + "qml/WorldClock/WorldClockPage.qml" + "qml/WorldClock/images/center.png" + "qml/WorldClock/images/[email protected]" + "qml/WorldClock/images/second.png" + "qml/WorldClock/images/[email protected]" + "qml/WorldClock/images/swissdaydial.png" + "qml/WorldClock/images/[email protected]" + "qml/WorldClock/images/swissdayhour.png" + "qml/WorldClock/images/[email protected]" + "qml/WorldClock/images/swissdayminute.png" + "qml/WorldClock/images/[email protected]" + "qml/WorldClock/images/swissnightdial.png" + "qml/WorldClock/images/[email protected]" + "qml/WorldClock/images/swissnighthour.png" + "qml/WorldClock/images/[email protected]" + "qml/WorldClock/images/swissnightminute.png" + "qml/WorldClock/images/[email protected]" + "wearable.qml" +) + +qt6_add_resources(wearable "wearable" + PREFIX + "/" + FILES + ${wearable_resource_files} +) + + +install(TARGETS wearable + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) |