cmake: add '-t <tgt>...' option as a short version of '--target <tgt>...' option
Problem
The syntax of native build commands are much shorter. To build you need to specify following simple commands.
Example for Make:
$ cmake ..
$ make
$ make Library1 Library2
Example for Ninja:
$ cmake -G Ninja ..
$ ninja
$ ninja Library1 Library2
Unfortunately with cmake the build commands are much longer. The probability of typo is larger with long command. This is the reason why developers prefer to use native build commands.
Example for CMake:
$ cmake ..
$ cmake --build .
$ cmake --build . --target Library1 Library2
Solution proposal
I would propose to introduce shorter arguments for daily use, to decrease probability of mistakes during typing.
Example for CMake:
$ cmake ..
$ cmake --build .
$ cmake --build . -t Library1 Library2
The CMake approach have huge advantage, that it is independent from native Build tool.
With this Merge Request I would like to shorten command to encourage developers to use CMake build command.
Edited by Bartosz