Turkey 's parliament has set the dates for a presidential election after an earlier attempt in April to select a new president was blocked .