Adaptions for cmake