Details
-
Suggestion
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 7.0.2
-
None
-
-
94663d0db (14.0)
Description
Cmake provides an option to use a special launcher program when testing executable files, e.g. for cross-compiled applications, to run them on the build host. When executing these tests within QtCreator (with the CTest Engine), the start program defined by cmake is also used. However, this does not apply to direct execution, which would be helpful in the context mentioned.
This support may only be activated in the run configuration for cmake targets for which an emulator or test/run launcher has been defined by cmake; native executable targets are excluded from this and can be started normally.
An emulator or test/run launcher will be provided by cmake via the fileapi, see https://gitlab.kitware.com/cmake/cmake/-/issues/25408. For older versions, the cmake variable CMAKE_CROSSCOMPILING_EMULATOR can be used as a fallback solution.
Just as an additional line for an interpreter appears in Python projects, an additional line with the launcher can appear in the desktop run configuration in the cases described to display this support.