X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=README_CMake;h=fb0eec9f3e0f7d4606251f1212439b269676ab7b;hb=ce546038f6b0530a198bc616d826e784e06d546e;hp=c76bdc93dbb411d55a3f27b2a3bd445da34b3a19;hpb=14b998220dbb0e5e5e41d8808cef84df0e0a3401;p=u%2Fmrichter%2FAliRoot.git diff --git a/README_CMake b/README_CMake index c76bdc93dbb..fb0eec9f3e0 100644 --- a/README_CMake +++ b/README_CMake @@ -1,6 +1,20 @@ -You have to pass in the cmake step some parameter to the script -otherwise the CMakeLists.txt in the subdirectories are not created. +Steps to Build AliRoot with CMake : - cmake -DGENERATE_FILES=TRUE +1. Define environment variable ALICE_INSTALL + export ALICE_INSTALL=$ALICE/AliRootInstall + +2. Set Path to point to binaries and libraries that will be built in ALICE_INSTALL + export PATH=$PATH:$ALICE_INSTALL/bin/tgt_${ALICE_TARGET} + export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ALICE_INSTALL/lib/tgt_${ALICE_TARGET} + +3. Execute the following commands to build AliRoot + cd $ALICE_INSTALL + cmake + make + +4. In order to build addtional targets like TFluka, THydjet and SHUTTLE add the following options to the cmake command + cmake -DTFLUKA=ON -DTHYDJET=ON -DSHUTTLE=ON + +!IMPORTANT! : Make sure you delete all the files in your ALICE_INSTALL directory before you generate the Makefile again to clear the CMakeCache or the generated build system may not function properly. + -is the correct command.