I call this "the cat funnel." It starts with earning the cat's trust. This begins way before you want the cat to come to you. You'll need to give gifts that are free for the cat but either cost you time or money (or both). Next, you'll need to provide a treat or something it likes. Not every cat is the same, so you'll need to know the cat well enough to know what it likes. Each time you give the cat something it likes, shake the bag of treats or whistle so that it knows that sound means something good is coming. Remember, cats are sensitive to loud noise and sudden movements so make sure the environment in which you choose to lure the cat is favorable.
It's funny how being generous, showing interest, getting to know what the cat wants, and being aware of its needs makes the cat like you. Maybe now we should try it with humans.