1 2 3 4 5 6
add_custom_target(check ALL COMMAND check $<CONFIG:.> $<CONFIG:Foo,Bar> $<CONFIG:Foo-Bar> $<$<CONFIG:Foo-Nested>:foo> VERBATIM)