Use add_dependencies correctly.