Project Dependencies vs Target Dependencies (difference?)

What's the difference between project dependencies and target dependencies?

  • Project dependencies can be added here:

  • Target dependencies can be added here:


  • in the case of external dependencies (via URL), do we need to add it to both project and target, or is one of those enough?
  • in the case of local dependencies (via the workspace), do we need to add it to both project and target, or is one of those enough?