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

Add support for using multiple ifcodegen templates in the same CMakeLists.txt

    XMLWordPrintable

Details

    • c4999abff6 (qt/qtinterfaceframework/dev) d363b99044 (qt/qtinterfaceframework/6.3)

    Description

      For smaller projects only a single CMakeLists.txt is used. Right now it is not possible to generate code using multiple templates e.g. the following:

      qt_add_library(lib SHARED)
      qt_ifcodegen_extend_target(lib
          IDL_FILES example.qface
          TEMPLATE frontend
      )
      target_link_libraries(lib
        PRIVATE
        Qt6::Core
        Qt6::Quick
        Qt6::QuickControls2
        Qt6::InterfaceFramework
        Qt6::InterfaceFrameworkPrivate
      )
      
      qt_add_plugin(backend)
      qt_ifcodegen_extend_target(backend
          IDL_FILES example.qface
          TEMPLATE backend_simulator
      )
      target_link_libraries(backend
        PRIVATE
        Qt6::Core
        Qt6::Quick
        Qt6::QuickControls2
        Qt6::InterfaceFramework
        Qt6::InterfaceFrameworkPrivate
        lib
      )
      

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes