Extracted cmake commands into scripts