removed unnecessary definitions
trimmed cmake script