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

Support for CMake INTERFACE libraries

XMLWordPrintable

      My CMake project contains some header-only libraries, e.g.:

      add_library(foo INTERFACE)
      target_sources(foo INTERFACE foo.h)

      Qt Creator unfortunately sees that target, but doesn't display the sources (in this case, foo.h) in the project browser. It would be nice if it would

      Attached a simple test project, just open it in Qt Creator - foo.h is not in the project browser, although it's in the target_sources for the 'foo' header only library

        1. Screenshot_20171122_154538.png
          Screenshot_20171122_154538.png
          120 kB
        2. Screenshot_20171122_121228.png
          Screenshot_20171122_121228.png
          126 kB
        3. foo.h
          0.0 kB
        4. CMakeLists.txt
          0.1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            hunger Tobias Hunger
            fernenge Harald Fernengel
            Votes:
            13 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes