Use root libraries in Xcode

I followed the instruction here root.cern.ch/drupal/content/how- … e-mac-os-x

Here is the output
– Looking for Root…
CMake Error at FindROOT.cmake:31 (MESSAGE):
ROOT not installed in the searchpath and ROOTSYS is not set. Please

set ROOTSYS or add the path to your ROOT installation in the Macro FindROOT.cmake in the
subdirectory cmake/modules.
Call Stack (most recent call first):
CMakeLists.txt:17 (include)

– Configuring incomplete, errors occurred!

I have Mac os x 10.8.2 and installed root using macport.

Thanks a lot

Regards
Tuoyu

I set ROOTSYS and it works right now.

I am new to Xcode. So how to use this event.xcodeproj file. How to setup a C++ project with this file in xcode? I added a .cpp file in this project and it can be built but not executed. Is it possible to call visualization module in root directly from xcode?

Thanks a lot.

Tuoyu