Add cmake macro add_static_variants
Separating the workflow into a part where the static variations are translated into a set of targets and a part where dynamic parameters are varied, we offer a two step procedure. This is the macro for the first step:
add_static_variants(
SOURCE src1 [,src2 ...]
BASENAME base
INIFILE ini
TARGETS targetoutput
)
The macro will do the following steps:
- Analyze the static section of the given meta ini file.
- Pass all static configurations to cmake
- Create targets named base_suffix, where base is the given basename and suffix comes from the meta ini file naming scheme. Take all target configurations from the ini file.
- Set the targetoutput variable to the list of created targets