Using cmake to configure root