Most stoves have a minimum set back from certain materials. You can damn near put a stove on the wall of a wood frame building with the proper heat shields. Those heat shields happen to be metal sheets.
Buy a chimney kit. That will get you through the ceiling and roof. Other than that make sure it is set off the wall the correct distance and you will be fine. Also air tight buildings don't like wood stoves so if the building is tight you may need a vent near the stove.
There isn't a set number since each stove has its own unique characteristics. Some high efficiency stoves are pretty cool on the outside shell.
Joe
ETA: You also have codes for the chimney height outside, but I don't recall them off my head. The top needs to be a distance from the roof surface and normally above the peak for proper draft. Google is your friend, try this....
linky link