Split install code to the specific cmake conf file