ad to cmake