Megration to cmake config.