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

Improve ifcodegen qt_add_qml_module integration

XMLWordPrintable

    • cabd37e7b (dev)

      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

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

            gagi Dominik Holland
            gagi Dominik Holland
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes