Rory McIlroy is set to compete at the Olympics after taking medical advice over the Zika virus which has spread through Brazil.