missing directories in xcode 4?

I'm a bit stuck here, basically I'm trying to compile Box2D as a static cocos library. I started by creating a static library project in xcode4 and dragged in the source files (in the correct folder hierarchy) into the project. When I compile though I get a whole load of errors in regards to the header files not being found.

So all these header files being looked for in b2GearJoint.cpp are not found:

#include <Box2D/Dynamics/Joints/b2GearJoint.h>
#include <Box2D/Dynamics/Joints/b2RevoluteJoint.h>
#include <Box2D/Dynamics/Joints/b2PrismaticJoint.h>
#include <Box2D/Dynamics/b2Body.h>
#include <Box2D/Dynamics/b2TimeStep.h>

I figured this should be straight forward enough to fix, I just need to include the root box2d folder in the pre-included directories so it knows where to look. So I added the project root directory to the search path header section but i still get the same errors.

This may actually have a straightforward solution but I'm new to xcode 4 (usually a visual studio user)...
Did you check the "Recursive" box when you added the folder? Or, probably more helpfully, you shouldn't add the root directory, but you should add the folder that has the headers inside it (generally called "include").

Original thread: https://box2d.org/forum/viewtopic.php?t=7364