http://root.cern.ch/drupal/content/building-root-cmake mkdir cd cmake [-DCMAKE_INSTALL_PREFIX=] [see possible options later] make [or, make -j n for n core machines] make install -DCMAKE_BUILD_TYPE=Debug # Other build types: Release, RelWithDebInfo, MinSizeRe -DCMAKE_INSTALL_PREFIX= # installation prefix -DCMAKE_C_COMPILER=gcc # What C compiler to use -DCMAKE_CXX_COMPILER=c++ # What C++ compiler to use -DCMAKE_F_COMPILER=gfortran # What fortran compiler to use -DCMAKE_LINKER=ld # What linker program to use -Dgnuinstall=ON|OFF # Perform installation following the GNU guidelines -Dfail-on-missing=ON|OFF # Fail the configure step if a required external package is missing -Dall=ON|OFF # Enable all optional components -Dtesting=ON|OFF # Enable testing with CTest (tests defined and environemnt prepared) -Droottest=ON|OFF # Include roottest tests, if roottest subdirectory exists or if it is a sibling directory -Dxxxx=ON # Switch optional ROOT component ON (e.g. tmva, mathcode, gdml, etc.) -Dyyyy=OFF # Switch optional ROOT component OFF Xcode Generate the Xcode project with cmake -G "Xcode" . Open the generated file with the Xcode application. Clean cache rm CMakeCache.txt cmake -U * cmake --help-variable-list