[CMAKE] Use configuration-specific names for files generated by CMake.