BIARRITZ, France — President Donald Trump said Monday that he was open to a meeting with his Iranian counterpart, a face-to-face that French President Emmanuel Macron said he is trying to arrange in the coming weeks.

"If the circumstances were correct, were right, I would certainly agree" to meet with Iranian President Hassan Rouhani, said Trump, speaking at a news conference with Macron after the Group of Seven summit. He said a meeting within weeks is realistic.

While he did not articulate any preconditions, the president had a message for Iran's leaders: "We’re not looking for leadership change."

Related

Trump outlined three requirements for a new deal: It must block Iran's path to nuclear weapons, get rid of Tehran's ballistic missile capabilities and last longer than 10 years, the length of the 2015 agreement he withdrew from.

He said that in the meantime, amid any negotiations, Iran could obtain lines of credit, tied to oil, from multiple countries that would have an expiration date and have to be repaid.

"I think that Iran is a country of tremendous potential," Trump said, adding that it's in "a little rough neighborhood but eventually it's going to be a beautiful neighborhood."

Macron said he had spoken with Rouhani, who was also open to a meeting with Trump. One possible setting could be the gathering of world leaders next month at the United Nations General Assembly.

“I think that we’re making progress," Macron said at the joint press conference with Trump. "I want this meeting to happen, and I want there to be an agreement between the United States and Iran.”

The French leader said he discussed his plan to invite Zarif to Biarritz, where G7 leaders were meeting for two days. Trump said he approved of the move, which was aimed at bringing Trump and Iran to the negotiating table.

Since Trump withdrew from the 2015 Iran nuclear deal last year, Macron and the leaders of Germany and the U.K. have tried to salvage it and bring the U.S. and Iran back to the negotiating table. Instead, Trump has adopted a so-called maximum pressure campaign of sanctions to squeeze Iran’s economy. He’s also expressed a willingness to meet with the Iranians without preconditions, but Iran’s leaders have refused.

Some administration officials traveling with the president in France were furious in the hours after Zarif’s unannounced arrival in Biarritz. But they couldn’t say at that point when Trump had become aware of the visit. “It was a surprise,” one U.S. official said at the time.

Carol E. Lee

Carol E. Lee is an NBC News correspondent.

Hallie Jackson

Hallie Jackson is the chief White House correspondent for NBC News.

Shannon Pettypiece

Shannon Pettypiece is the senior White House reporter for NBCNews.com.