ISTANBUL, July 16 (Reuters) - Any country that stands by the Muslim cleric Fethullah Gulen will not be a friend of Turkey and will be considered at war with the NATO member, Turkish Prime Minister Binali Yildirim said on Saturday.

The government said that followers of Gulen, who has been living in self-imposed exile in the United States for years, were behind the attempted coup by a faction of the military on Friday.

The government accuses Gulen of trying to build a "parallel structure" within the judiciary, education system, media and military as a way to overthrow the state, a charge the cleric denies. (Reporting by David Dolan; Editing by Andrew Heavens)

Our Standards: The Thomson Reuters Trust Principles.