Now ideally what I want when CMake builds the project is to exclude a combination of the folders based on a variable that I pass in. I have my CMake project make either a Midnight build or a Revenge build depending on a variable I pass in. But I can’t work out to do resources files on a variable because it looks like it all gets copied in one go.
I’m not entirely sure if there is a way to exclude resources because on the way they are copied, but, consider handling this in a different way.
How about you construct the Resources folder based on your build variables before it gets to the resource copying stage. For example, say you have this folder structure for your resources:
In CMakeLists.txt, you first delete the contents of the existing Resources folder, then copy the contents of both the Common and one of the other two (Midnight or Revenge) resource folders into the /Resources/ folder. Does this make sense?