I assume your home was on this property and that the new structure was a garage, a workshop, an in-law residence or something else that you used personally.
You simply add the cost of building that new structure to your adjusted basis for the original property you sold.
Tom Young