Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-15637

Support splitting project content into multiple CMake targets

    XMLWordPrintable

Details

    Description

      Currently, if we import multiple Figma projects, the structure is like this:

      ./MyProject.qmlproject
      ./CMakeLists.txt
      ./MyProjectContent/CMakeLists.txt       # <-- Monolithic CMake target that contains ALL content
      ./MyProjectContent/*.ui.qml
      ./MyProjectContent/FigmaProj1/*.ui.qml
      ./MyProjectContent/FigmaProj1/assets/*
      ./MyProjectContent/FigmaProj2/*.ui.qml
      ./MyProjectContent/FigmaProj2/assets/*
      

       

      It would be good to support something like this:

      ./MyProject.qmlproject
      ./CMakeLists.txt
      ./MyProjectContent/CMakeLists.txt
      ./MyProjectContent/*.ui.qml
      ./MyProjectContent/FigmaProj1/CMakeLists.txt  # <-- Dedicated CMake target for FigmaProj1
      ./MyProjectContent/FigmaProj1/*.ui.qml
      ./MyProjectContent/FigmaProj1/assets/*
      ./MyProjectContent/FigmaProj2/CMakeLists.txt  # <-- Dedicated CMake target for FigmaProj2
      ./MyProjectContent/FigmaProj2/*.ui.qml
      ./MyProjectContent/FigmaProj2/assets/*
      

       

      Use-case

      A customer wants their top-level project to contain multiple C++ targets (libraries or executables), and each target could link to a specific QDS-generated target. For example:

      • App1 only links to FigmaProj1
      • App2 only links to FigmaProj2
      • App3 links to both FigmaProj1 and FigmaProj2

       

      Side note: This multi-target project would not use the auto-generated ./App/main.cpp or ./qds.cmake

      Attachments

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

        Activity

          People

            thohartm Thomas Hartmann
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes