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

Allow adding files to cmake project

XMLWordPrintable

    • All
    • d8be2491a (master)

      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%%
      )
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes