Depends on various variables. I'll assume you're using Windows to start with.
When you write sound.loadFromFile("resource/sound.wav"), then path the executable will try to load the files from, are relative to the working directory. When you double click the executable in explorer, the working directory is usually set to the same directory as the executable is in.
In short, you usually want the resources located relative to your executable.
Other than that, make sure to ship the necessary DLLs (don't forget OpenAL!) and if you're using Visual Studio, you may need to tell your friend to install the matching redistribution package to install the runtime libraries.