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

Files are not automatically added to the CMakeLists.txt file of the CMake project

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt Creator 4.13.0-beta1
    • None

    Description

      When adding a new form class to a CMake project, you'll get this dialog box:

      I just talked with a beginner who had apparently checked the "always copy paths" checkbox and then forgot about it, which led to a lot of confusion for them when they started getting linker errors due to the constructor not being defined, since the .cpp file wasn't being included.

      As far as I remember this (adding files to the project file for the user) worked fine with qmake and so it should work with CMake too.

      Attachments

        Issue Links

          Activity

            People

              cadam Cristian Adam
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: