At one point last week, Joe Dumars’ five-hour meeting with free agent Josh Smith came to an abrupt halt.

“He was trying to sell me on him, and I was trying to sell him on us,” Dumars, the Detroit Pistons’ president of basketball operations, said today.

“I said, ‘Hold on, you don’t have to sell me; we’re trying to sell you on us.’”

Obviously, both sides succeeded, as the veteran forward officially signed a four-year deal with the Pistons today. The contract is worth $54 million.

“This was my only option,’’ Smith said. “I didn’t have any other options. This is where I wanted to be. We’re definitely a playoff team, and we’re definitely a contender.’’

The Pistons haven’t been close to the playoffs since they were swept by top-seeded Cleveland during Michael Curry’s only season as head coach in 2008-09. But Smith is familiar with the Pistons’ past.

“They’ve won championships here,’’ he said. “(Dumars) has had success as a player and as an executive. I’ve been in the second round of the playoffs three times.”

Dumars said that after realizing the team wouldn’t land free agents Dwight Howard nor Chris Paul, his No. 1 target was Smith.

He watched a ton of film and loved Smith’s versatility to play small forward and power forward at both ends of the floor.