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

Cmake based project list headers specified by target_include_directories and maybe include_directories

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 6.0.2, Qt Creator 7.0.1
    • None

    Description

      The problem I have is that headers that are not added via add_library add_executable and add_source are not displayed in the project navigation view. This is unexpected behaviour since from the programmers mental model they are part of the project. As far as i know consensus in cmake projects is using include_directory or target_include_directory to specify headers rather than listing as part of the source file list.

      I know this was introduced in version 6.0. As discribed here:

      https://www.qt.io/blog/qt-creator-6-cmake-update

      I see the point made in the post but it makes it hard to work on projects that donĀ“t use the 'qt-style' of managing headers.

      It would be nice if qtcreator could display the headers that are added by include_directory and target_include_directory.

      Attachments

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

        Activity

          People

            cadam Cristian Adam
            ws_sielaff s wehner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes