CPack/NuGet: Build dependencies in groups
This allows particular frameworks to be targeted by particular dependencies, and for empty dependency groups to satisfy NuGet's framework-matching requirements.
Fixes: #24892 (closed)
Topic-rename: cpack-nuget-dependency-groups
Edited by Brad King