Dynamically generate CTest resource spec file
Some projects will want to have CTest dynamically generate a resource spec file for CTest resource allocation, to ensure that the resource spec files are generated consistently across machines. While one could simply write a wrapper script around CTest that first generates the spec file and then runs CTest, users could forget to run this script.