Yeah, with Mac you have to think different, they said.
As stated in the
introductory tutorial, you have to use a special function to get the resource path,
std::string resourcePath(void). If you use Xcode, then the function is imported into your project automatically by the SFML project wizard. But if you want to stay away from this IDE you can simply download these two files :
ResourcePath.hpp and
ResourcePath.mm.
The implementation is written in Objective-C. You should not have issue with cmake in theory. But if you do you can reimplement the function in C with
CFBundle API.