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

Files listed in CMake add_custom_target() are not listed in project tree

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • Qt Creator 2.1.0-beta2
    • None
    • Windows XP 32bit, MSVC 2008 as compiler, CMake 2.8.0

    Description

      Listing QML files seems not to be possible when using CMake based projects. One way to add those files to be listed in project (at least with Visual Studio) is using add_custom_target() and listing files after SOURCES. Those files does not seem to be listed in Qt Creator (the same thing works in Visual Studio 2008).

      Used line in CMake 2.8.0:
      add_custom_target(QmlFiles ALL ${CMAKE_COMMAND} -E echo "Meter.qml" SOURCES Meter.qml)

      It only does dummy operation by echoing something and ALL argument is probably useless too.

      Attachments

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

        Activity

          People

            dt Daniel Teske
            timit Timi Tuohenmaa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes