45526b5e |
1 | |
2 | Note: The CMake build of AliRoot builds out-of-source |
3 | |
529dfa42 |
4 | Steps to Build AliRoot with CMake : |
dfa85384 |
5 | |
45526b5e |
6 | 1. Check out Aliroot source into any folder |
7 | |
8 | svn co http://alisoft.cern.ch/AliRoot/trunk ~/trunk |
529dfa42 |
9 | |
45526b5e |
10 | 2. Create a new folder and set the environment variable ALICE_ROOT to point to it |
11 | |
12 | mkdir AliRoot |
13 | cd AliRoot |
14 | export ALICE_ROOT=`pwd` |
529dfa42 |
15 | |
16 | 3. Execute the following commands to build AliRoot |
45526b5e |
17 | |
18 | cmake ~/trunk |
529dfa42 |
19 | make |
20 | |
45526b5e |
21 | 4. In order to build addtional targets like THydjet and SHUTTLE add the following options to the cmake command |
22 | |
23 | cmake -DTHydjet=ON -DSHUTTLE=ON <path_to_source> |
24 | |
529dfa42 |
25 | |
45526b5e |
26 | !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 |
529dfa42 |
27 | |
dfa85384 |
28 | |