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

Support for CMake INTERFACE libraries

    XMLWordPrintable

Details

    Description

      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

      Attachments

        1. CMakeLists.txt
          0.1 kB
        2. foo.h
          0.0 kB
        3. Screenshot_20171122_121228.png
          Screenshot_20171122_121228.png
          126 kB
        4. Screenshot_20171122_154538.png
          Screenshot_20171122_154538.png
          120 kB

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes