Moved cmake meta functions to dedicated module.