Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28493

Allow adding files to cmake project

    XMLWordPrintable

Details

    • All
    • d8be2491a (master)

    Description

      Adding files to cmake projects has been discussed multiple times (e.g. QTCREATORBUG-19962) but the way it is currently handled is cumbersome (and confusing to new users).

      My suggestion is to use placeholder comments (similar to AndroidManifest.xml and - I think - also Info.plist files), for instance:

      qt_add_executable(camera
          MANUAL_FINALIZATION
          main.cpp
          #%%SOURCE_FILES%%
          #%%HEADER_FILES%%
      )
      

      which is then replaced by Qt Creator when adding "MainWindow" class to:

      qt_add_executable(camera
          MANUAL_FINALIZATION
          main.cpp
          mainwindow.cpp
          #%%SOURCE_FILES%%
          mainwindow.h
          #%%HEADER_FILES%%
      )
      

      Attachments

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-28493
          # Subject Branch Project Status CR V

          Activity

            People

              cadam Cristian Adam
              Harald Meyer Harald Meyer
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes