You could use included xcode project, or use a makefile located in raytracer directory. If you have CSFML 2.0 installed, then use
make with_csfml, otherwise use
make with_libpng (use apt-get or brew or whatever to get libpng).
It has 3 hardcoded demos, you can edit scene.c to change them.