better add_dependencies example
(checked that no wiki tutorial quoted from it using line numbers)