There are two types of smoking: hot smoking and cold smoking.
Salmon and BBQ Pork are hotsmoked, where the food is kept in the same chamber as the fire which is creating the smoke. The food is slowly cooked.
Cold smoking is where the food is kept in a separate chamber, and the smoke is vented into the chamber with the meat, so it gets saturated with a low-temparature smoke.
Rasher-style bacon (normal bacon) is cold smoked, which is why it needs to be cooked.
Ham is usually hot-smoked, but I'm not sure if it ever reaches a high enough internal temparature to kill everything. It sure tastes better when cooked.
Edit: And all bets are off with fake-mostly-water-reformed-pork-product ham