Install EXPORT for multiple build types

For this bit, what you’re looking for is most likely the command file(GENERATE)