|
| 1 | +# ************************************************************************** |
| 2 | +# * Copyright(c) 1998-2015, ALICE Experiment at CERN, All rights reserved. * |
| 3 | +# * * |
| 4 | +# * Author: The ALICE Off-line Project. * |
| 5 | +# * Contributors are mentioned in the code where appropriate. * |
| 6 | +# * * |
| 7 | +# * Permission to use, copy, modify and distribute this software and its * |
| 8 | +# * documentation strictly for non-commercial purposes is hereby granted * |
| 9 | +# * without fee, provided that the above copyright notice appears in all * |
| 10 | +# * copies and that both the copyright notice and this permission notice * |
| 11 | +# * appear in the supporting documentation. The authors make no claims * |
| 12 | +# * about the suitability of this software for any purpose. It is * |
| 13 | +# * provided "as is" without express or implied warranty. * |
| 14 | +# ************************************************************************** |
| 15 | + |
| 16 | +set(AliRoot_FOUND FALSE) |
| 17 | + |
| 18 | +if(ALIROOT) |
| 19 | + |
| 20 | + # Check if AliRoot is really installed there |
| 21 | + if(EXISTS ${ALIROOT}/bin/aliroot AND EXISTS ${ALIROOT}/lib AND EXISTS ${ALIROOT}/include) |
| 22 | + |
| 23 | + include_directories( |
| 24 | + ${ALIROOT}/include |
| 25 | + ${ALIROOT}/include/pythia |
| 26 | + ) |
| 27 | + |
| 28 | + link_directories(${ALIROOT}/lib) |
| 29 | + |
| 30 | + set(AliRoot_FOUND TRUE) |
| 31 | + |
| 32 | + message(STATUS "AliRoot ... - found ${ALIROOT}") |
| 33 | + |
| 34 | + endif() |
| 35 | +endif(ALIROOT) |
| 36 | + |
| 37 | +if(NOT AliRoot_FOUND) |
| 38 | + if(AliRoot_FIND_REQUIRED) |
| 39 | + message(FATAL_ERROR "Please point to the AliRoot Core installation using -DALIROOT=<ALIROOT_CORE_INSTALL_DIR>") |
| 40 | + endif(AliRoot_FIND_REQUIRED) |
| 41 | +endif(NOT AliRoot_FOUND) |
0 commit comments