Convert to cmake