Feature request: Generation expression support for XCODE_SCHEME_EXECUTABLE and XCODE_SCHEME_ARGUMENTS
Currently XCODE_SCHEME_EXECUTABLE
and XCODE_SCHEME_ARGUMENTS
don't support generation expressions. This makes it really hard to be able to setup debugging parameters for e.g. unit tests.
We currently use googletest and have a "runner" executable. The test targets are dynamic libraries. In VS we setup those targets' debugging parameters to execute that "runner" and pass the required parameters (among others, the dynamic library).
We cannot do this in Xcode because we need to be able to pass generation expressions to those parameters and have them be generated per configuration.
Looking at the code, XCODE_SCHEME_WORKING_DIRECTORY
already supports generation expressions: https://github.com/Kitware/CMake/blob/949227b5d4653a4fca68b73ecc6171b8ba19b286/Source/cmXCodeScheme.cxx#L428
This would just require to expand those generation expansion here: