]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - README_CMake
Updating responsibles for nightly tests (adding Hans Beck).
[u/mrichter/AliRoot.git] / README_CMake
index 4babc8d3a19d47a3da032bed5f327b00a15d9976..ad517e09dbca89a3aacf20ed8c856f160e16b7cb 100644 (file)
@@ -1,7 +1,47 @@
-#
-You have to pass in the cmake step some parameter to the script
-otherwise the CMakeLists.txt in the subdirectories are not created.
 
-   cmake <path_to_source> -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 <Path to Source>
+
+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 <path_to_source>
+
+5. Static libraries can be built using
+
+       make alilibs-static
+
+6. Individual Modules can be built using
+
+       make <Module>-all
+       make <Module>-all-static 
+
+eg.    make STEER-all STEER-all-static
+
+7. Individual Packages can be built using
+
+       make <Package>
+       make <Package>-static
+
+eg.    make STEERbase STEERbase-static
+
+!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.