change compile method to cmake