Optimised cmake files