Autogen: Forward target dependencies to *_autogen target
Only the dependencies from target_link_libraries() of the origin
target were forwarded to the *_autogen
target.
This patch adds forwarding of the dependencies from add_dependencies()
of the origin target to the *_autogen
target.