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

Add support for specifying main target for CMake projects

    XMLWordPrintable

Details

    • f8a77287bfc74d1cb2e25eb510bfa9f97ca5bc8b (qt-creator/qt-creator/5.0)

    Description

      When opening a project with multiple executable targets, anyone ends up being the one that is selected by default for running the project. Usually there is a (or multiple) "main" executable(s) that should be selected by default instead.

      For qmake projects we have qtc_runnable, for Qbs projects we have qtcRunnable. We should have something similar for CMake.

      Since we are limited to what CMake file-api provides us, and option would be to read a cache variable QTC_RUNNABLES with a list of target names.

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-25908
        # Subject Branch Project Status CR V

        Activity

          People

            cadam Cristian Adam
            con Eike Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes