diff --git a/qml6-pragmasingleton/CMakeLists.txt b/qml6-pragmasingleton/CMakeLists.txt index 5f59da1..09791f0 100644 --- a/qml6-pragmasingleton/CMakeLists.txt +++ b/qml6-pragmasingleton/CMakeLists.txt @@ -20,12 +20,6 @@ target_sources(${PROJECT_NAME} "main.cpp" ) -# This automatically creates resources, -# so avoid using qt_add_resources() with it. -# If we had a qrc file, we'd put after the first argument. -# This generates a resource like this: -# qrc: + RESOURCE_PREFIX + URI + / + QML_FILES -# so qrc:/qt/qml/com/example/pragmasingleton/Main.qml qt_add_qml_module(${PROJECT_NAME} URI "com.example.pragmasingleton" VERSION 1.0 diff --git a/qml6-pragmasingleton/qml/CMakeLists.txt b/qml6-pragmasingleton/qml/CMakeLists.txt index 80ad582..f1ef3ba 100644 --- a/qml6-pragmasingleton/qml/CMakeLists.txt +++ b/qml6-pragmasingleton/qml/CMakeLists.txt @@ -2,7 +2,6 @@ set_source_files_properties(PragmaSingleton.qml PROPERTIES QT_QML_SINGLETON_TYPE ON) qt_add_library(pragmasingleton-dialogs) -qt_add_library(pragmasingleton-singletons) qt_add_qml_module(pragmasingleton-dialogs URI "com.example.pragmasingleton.dialogs" @@ -13,6 +12,8 @@ qt_add_qml_module(pragmasingleton-dialogs "ViewDialog.qml" ) +qt_add_library(pragmasingleton-singletons) + qt_add_qml_module(pragmasingleton-singletons URI "com.example.pragmasingleton.singletons" VERSION 1.0