diff options
Diffstat (limited to 'examples/qml/referenceexamples')
12 files changed, 515 insertions, 0 deletions
diff --git a/examples/qml/referenceexamples/CMakeLists.txt b/examples/qml/referenceexamples/CMakeLists.txt new file mode 100644 index 0000000000..827e3b0060 --- /dev/null +++ b/examples/qml/referenceexamples/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from referenceexamples.pro. + +add_subdirectory(adding) +add_subdirectory(coercion) +add_subdirectory(default) +add_subdirectory(properties) +add_subdirectory(methods) +if(TARGET Qt::Widgets) + add_subdirectory(extended) +endif() +if(TARGET Qt::Quick) + add_subdirectory(attached) + add_subdirectory(binding) + add_subdirectory(grouped) + add_subdirectory(signal) + add_subdirectory(valuesource) +endif() diff --git a/examples/qml/referenceexamples/adding/CMakeLists.txt b/examples/qml/referenceexamples/adding/CMakeLists.txt new file mode 100644 index 0000000000..6a75d83d01 --- /dev/null +++ b/examples/qml/referenceexamples/adding/CMakeLists.txt @@ -0,0 +1,43 @@ +# Generated from adding.pro. + +cmake_minimum_required(VERSION 3.14) +project(adding LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/adding") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Qml) + +add_qt_gui_executable(adding + main.cpp + person.cpp person.h +) +target_link_libraries(adding PUBLIC + Qt::Core + Qt::Qml +) + + +# Resources: +set(adding_resource_files + "example.qml" +) + +qt6_add_resources(adding "adding" + PREFIX + "/" + FILES + ${adding_resource_files} +) + +install(TARGETS adding + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/qml/referenceexamples/attached/CMakeLists.txt b/examples/qml/referenceexamples/attached/CMakeLists.txt new file mode 100644 index 0000000000..adc8c4660a --- /dev/null +++ b/examples/qml/referenceexamples/attached/CMakeLists.txt @@ -0,0 +1,46 @@ +# Generated from attached.pro. + +cmake_minimum_required(VERSION 3.14) +project(attached LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/attached") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Qml) + +add_qt_gui_executable(attached + birthdayparty.cpp birthdayparty.h + main.cpp + person.cpp person.h +) +target_link_libraries(attached PUBLIC + Qt::Core + Qt::Gui + Qt::Qml +) + + +# Resources: +set(attached_resource_files + "example.qml" +) + +qt6_add_resources(attached "attached" + PREFIX + "/" + FILES + ${attached_resource_files} +) + +install(TARGETS attached + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/qml/referenceexamples/binding/CMakeLists.txt b/examples/qml/referenceexamples/binding/CMakeLists.txt new file mode 100644 index 0000000000..876a444cae --- /dev/null +++ b/examples/qml/referenceexamples/binding/CMakeLists.txt @@ -0,0 +1,47 @@ +# Generated from binding.pro. + +cmake_minimum_required(VERSION 3.14) +project(binding LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/binding") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Qml) + +add_qt_gui_executable(binding + birthdayparty.cpp birthdayparty.h + happybirthdaysong.cpp happybirthdaysong.h + main.cpp + person.cpp person.h +) +target_link_libraries(binding PUBLIC + Qt::Core + Qt::Gui + Qt::Qml +) + + +# Resources: +set(binding_resource_files + "example.qml" +) + +qt6_add_resources(binding "binding" + PREFIX + "/" + FILES + ${binding_resource_files} +) + +install(TARGETS binding + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/qml/referenceexamples/coercion/CMakeLists.txt b/examples/qml/referenceexamples/coercion/CMakeLists.txt new file mode 100644 index 0000000000..32b4a0a8ab --- /dev/null +++ b/examples/qml/referenceexamples/coercion/CMakeLists.txt @@ -0,0 +1,44 @@ +# Generated from coercion.pro. + +cmake_minimum_required(VERSION 3.14) +project(coercion LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/coercion") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Qml) + +add_qt_gui_executable(coercion + birthdayparty.cpp birthdayparty.h + main.cpp + person.cpp person.h +) +target_link_libraries(coercion PUBLIC + Qt::Core + Qt::Qml +) + + +# Resources: +set(coercion_resource_files + "example.qml" +) + +qt6_add_resources(coercion "coercion" + PREFIX + "/" + FILES + ${coercion_resource_files} +) + +install(TARGETS coercion + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/qml/referenceexamples/default/CMakeLists.txt b/examples/qml/referenceexamples/default/CMakeLists.txt new file mode 100644 index 0000000000..96522b7efc --- /dev/null +++ b/examples/qml/referenceexamples/default/CMakeLists.txt @@ -0,0 +1,44 @@ +# Generated from default.pro. + +cmake_minimum_required(VERSION 3.14) +project(default LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/default") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Qml) + +add_qt_gui_executable(default + birthdayparty.cpp birthdayparty.h + main.cpp + person.cpp person.h +) +target_link_libraries(default PUBLIC + Qt::Core + Qt::Qml +) + + +# Resources: +set(default_resource_files + "example.qml" +) + +qt6_add_resources(default "default" + PREFIX + "/" + FILES + ${default_resource_files} +) + +install(TARGETS default + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/qml/referenceexamples/extended/CMakeLists.txt b/examples/qml/referenceexamples/extended/CMakeLists.txt new file mode 100644 index 0000000000..72fb391b68 --- /dev/null +++ b/examples/qml/referenceexamples/extended/CMakeLists.txt @@ -0,0 +1,47 @@ +# Generated from extended.pro. + +cmake_minimum_required(VERSION 3.14) +project(extended LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/extended") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Qml) +find_package(Qt6 COMPONENTS Widgets) + +add_qt_gui_executable(extended + lineedit.cpp lineedit.h + main.cpp +) +target_link_libraries(extended PUBLIC + Qt::Core + Qt::Gui + Qt::Qml + Qt::Widgets +) + + +# Resources: +set(extended_resource_files + "example.qml" +) + +qt6_add_resources(extended "extended" + PREFIX + "/" + FILES + ${extended_resource_files} +) + +install(TARGETS extended + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/qml/referenceexamples/grouped/CMakeLists.txt b/examples/qml/referenceexamples/grouped/CMakeLists.txt new file mode 100644 index 0000000000..b8daa901c0 --- /dev/null +++ b/examples/qml/referenceexamples/grouped/CMakeLists.txt @@ -0,0 +1,46 @@ +# Generated from grouped.pro. + +cmake_minimum_required(VERSION 3.14) +project(grouped LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/grouped") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Qml) + +add_qt_gui_executable(grouped + birthdayparty.cpp birthdayparty.h + main.cpp + person.cpp person.h +) +target_link_libraries(grouped PUBLIC + Qt::Core + Qt::Gui + Qt::Qml +) + + +# Resources: +set(grouped_resource_files + "example.qml" +) + +qt6_add_resources(grouped "grouped" + PREFIX + "/" + FILES + ${grouped_resource_files} +) + +install(TARGETS grouped + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/qml/referenceexamples/methods/CMakeLists.txt b/examples/qml/referenceexamples/methods/CMakeLists.txt new file mode 100644 index 0000000000..e46e62f586 --- /dev/null +++ b/examples/qml/referenceexamples/methods/CMakeLists.txt @@ -0,0 +1,44 @@ +# Generated from methods.pro. + +cmake_minimum_required(VERSION 3.14) +project(methods LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/methods") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Qml) + +add_qt_gui_executable(methods + birthdayparty.cpp birthdayparty.h + main.cpp + person.cpp person.h +) +target_link_libraries(methods PUBLIC + Qt::Core + Qt::Qml +) + + +# Resources: +set(methods_resource_files + "example.qml" +) + +qt6_add_resources(methods "methods" + PREFIX + "/" + FILES + ${methods_resource_files} +) + +install(TARGETS methods + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/qml/referenceexamples/properties/CMakeLists.txt b/examples/qml/referenceexamples/properties/CMakeLists.txt new file mode 100644 index 0000000000..e9d8777898 --- /dev/null +++ b/examples/qml/referenceexamples/properties/CMakeLists.txt @@ -0,0 +1,44 @@ +# Generated from properties.pro. + +cmake_minimum_required(VERSION 3.14) +project(properties LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/properties") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Qml) + +add_qt_gui_executable(properties + birthdayparty.cpp birthdayparty.h + main.cpp + person.cpp person.h +) +target_link_libraries(properties PUBLIC + Qt::Core + Qt::Qml +) + + +# Resources: +set(properties_resource_files + "example.qml" +) + +qt6_add_resources(properties "properties" + PREFIX + "/" + FILES + ${properties_resource_files} +) + +install(TARGETS properties + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/qml/referenceexamples/signal/CMakeLists.txt b/examples/qml/referenceexamples/signal/CMakeLists.txt new file mode 100644 index 0000000000..6a70765f4d --- /dev/null +++ b/examples/qml/referenceexamples/signal/CMakeLists.txt @@ -0,0 +1,46 @@ +# Generated from signal.pro. + +cmake_minimum_required(VERSION 3.14) +project(signal LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/signal") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Qml) + +add_qt_gui_executable(signal + birthdayparty.cpp birthdayparty.h + main.cpp + person.cpp person.h +) +target_link_libraries(signal PUBLIC + Qt::Core + Qt::Gui + Qt::Qml +) + + +# Resources: +set(signal_resource_files + "example.qml" +) + +qt6_add_resources(signal "signal" + PREFIX + "/" + FILES + ${signal_resource_files} +) + +install(TARGETS signal + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/qml/referenceexamples/valuesource/CMakeLists.txt b/examples/qml/referenceexamples/valuesource/CMakeLists.txt new file mode 100644 index 0000000000..af06b5c31e --- /dev/null +++ b/examples/qml/referenceexamples/valuesource/CMakeLists.txt @@ -0,0 +1,47 @@ +# Generated from valuesource.pro. + +cmake_minimum_required(VERSION 3.14) +project(valuesource LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/valuesource") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Qml) + +add_qt_gui_executable(valuesource + birthdayparty.cpp birthdayparty.h + happybirthdaysong.cpp happybirthdaysong.h + main.cpp + person.cpp person.h +) +target_link_libraries(valuesource PUBLIC + Qt::Core + Qt::Gui + Qt::Qml +) + + +# Resources: +set(valuesource_resource_files + "example.qml" +) + +qt6_add_resources(valuesource "valuesource" + PREFIX + "/" + FILES + ${valuesource_resource_files} +) + +install(TARGETS valuesource + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) |