Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-118780

Improve ifcodegen qt_add_qml_module integration

    XMLWordPrintable

Details

    Description

      Right now the code needs to be written like this:

      qt_ifcodegen_extend_target(libIc_ch3
          IDL_FILES ../instrument-cluster.qface
          PREFIX CLUSTER
          TEMPLATE frontend
      )
      qt_add_qml_module(libIc_ch3
          OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../imports/${CLUSTER_URI_PATH}"
          URI ${CLUSTER_URI}
          VERSION ${CLUSTER_VERSION}
          RESOURCE_PREFIX "/"
          IMPORTS QtInterfaceFramework/auto
      )
      

      Instead a convenient cmake function could be added which does most of the things automatically:

      qt_ifcodegen_extend_qml_module(libIc_ch3
      IDL_FILES ../instrument-cluster.qface
      PREFIX CLUSTER
      TEMPLATE frontend
      )

      which does the same as above automatically but also allows to change qt_add_qml_module options

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              zogera Zoltán Gera
              gagi Dominik Holland
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes