Separating CMAKE scripts for Darwin/Ubuntu