A new luxury apartment building in a growing North Carolina coastal town has sold for tens of millions of dollars.