X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=README_CMake;h=a4a7f6b4ccc585f283644f0aca908d7697985118;hb=8b7362ee1a8152343d03aec27f17cb61a79e19ec;hp=c76bdc93dbb411d55a3f27b2a3bd445da34b3a19;hpb=14b998220dbb0e5e5e41d8808cef84df0e0a3401;p=u%2Fmrichter%2FAliRoot.git diff --git a/README_CMake b/README_CMake index c76bdc93dbb..a4a7f6b4ccc 100644 --- a/README_CMake +++ b/README_CMake @@ -1,6 +1,55 @@ -You have to pass in the cmake step some parameter to the script -otherwise the CMakeLists.txt in the subdirectories are not created. - cmake -DGENERATE_FILES=TRUE +Note: The CMake build of AliRoot builds out-of-source + +Steps to Build AliRoot with CMake : + +1. Check out Aliroot source into any folder + + svn co http://alisoft.cern.ch/AliRoot/trunk ~/trunk + +2. Create a new folder and set the environment variable ALICE_ROOT to point to it + + mkdir AliRoot + cd AliRoot + export ALICE_ROOT=`pwd` + +3. Execute the following commands to build AliRoot + + cmake + +eg. cmake ~/trunk + make + +4. In order to build addtional targets like THydjet and SHUTTLE add the following options to the cmake command + + cmake -DTHydjet=ON -DSHUTTLE=ON + +5. Static libraries can be built using + + make alilibs-static + +6. Individual Modules can be built using + + make -all + make -all-static + +eg. make STEER-all STEER-all-static + +7. Individual Packages can be built using + + make + make -static + +eg. make STEERbase STEERbase-static + +8. The code can be checked for the ALICE coding conventions on a package or module level using the following targets. + + make check-all + make -check-all + make -check + + The resulting violations will be written to the folder $ALICE_ROOT//check/viols + +!IMPORTANT! - Make sure your source folder is clean. If you used the old make system to build aliroot run make clean in the source directory before you run cmake + -is the correct command.