# DATE
# date-config needs DIMDIR and ODIR set
+# Setting variables in cache to be accesible by ccmake
+set(DATE_CONFIG CACHE STRING "date-config script location")
+set(DIMDIT CACHE STRING "dim installation folder")
+set(ODIR CACHE STRING "dim plaform, usually \"linux\"")
if(DATE_CONFIG)
if(DIMDIR AND ODIR)
find_package(DATE)
endif()
# daqDA
+# Setting variables in cache to be accesible by ccmake
+set(daqDA CACHE STRING "daqDA library folder installation")
if(daqDA)
find_package(daqDA)
endif(daqDA)
# AMORE
+# Setting variables in cache to be accesible by ccmake
+set(AMORE_CONFIG CACHE STRING "amore-config script location")
if(AMORE_CONFIG)
if(ROOTSYS)
find_package(AMORE)
endif(AMORE_CONFIG)
# id DARPM we enable DA if it is not set
+# Setting variables in cache to be accesible by ccmake
+set(DARPM CACHE STRING "Enable DARPM: ON")
+set(DA CACHE STRING "Enable DA: ON")
if(DARPM)
if(NOT DA)
set(DA ON)
endif(DARPM)
# DA is enabled
+# Setting variables in cache to be accesible by ccmake
+set(ALIROOT_STATIC CACHE STRING "ENABLE static building of AliRoot: ON")
if(DA)
if(NOT DIMDIR AND NOT ODIR)
set(DA FALSE)
endif(DA)
# MDC rpm creation enables the static build
+# Setting variables in cache to be accesible by ccmake
+set(MDCRPM CACHE STRING "Enable mdc rpm build")
if(MDCRPM)
set(ALIROOT_STATIC TRUE)
message(STATUS "AliMDC RPM enabled. AliRoot static build enabled")
# ROOT configuration mandatory
# FindRoot has to be after the enabling of DA due to libRootExtra
# Do not put it above DA
+# Setting variables in cache to be accesible by ccmake
+set(ROOTSYS CACHE STRING "ROOT installation folder")
if(ROOTSYS)
find_package(ROOT REQUIRED)
# Enable SHUTTLE compilation
# Check if DIMDIR and ODIR are set
+# # Setting variables in cache to be accesible by ccmake
+set(SHUTTLE CACHE STRING "Enable SHUTTLE build : ON")
if(SHUTTLE)
if(ROOT_HASALIEN STREQUAL "no")
message(FATAL_ERROR "Shuttle needs ROOT build with AliEn support. Please build ROOT with AliEn support. Do not forget to set ALIEN to your AliEn installation")
if(NOT FASTJET_CONFIG)
message(FATAL_ERROR "Could not find fastjet-config executable")
endif(NOT FASTJET_CONFIG)
+ mark_as_advanced(FASTJET_CONFIG)
# Check for header installation
find_path(FASTJETHH include/fastjet/PseudoJet.hh PATHS ${FASTJET})
if (FASTJETHH-NOTFOUND)
message(FATAL_ERROR "Header file fastjet/PseudoJet.hh not found in ${FASTJET}/include. Please check your FASTJET installation")
endif(FASTJETHH-NOTFOUND)
+ mark_as_advanced(FASTJETHH)
# FastJet version
execute_process(COMMAND ${FASTJET_CONFIG} --version OUTPUT_VARIABLE FASTJET_VERSION ERROR_VARIABLE error OUTPUT_STRIP_TRAILING_WHITESPACE )
if(NOT ROOT_CONFIG)
message(FATAL_ERROR "Could not find root-config script.")
endif(NOT ROOT_CONFIG)
+ mark_as_advanced(ROOT_CONFIG)
# Check for rlibmap
find_program(ROOT_LIBMAP NAMES rlibmap rootcling PATHS ${ROOTSYS}/bin NO_DEFAULT_PATH)
else()
message(FATAL_ERROR "Could not find rlibmap executable.")
endif(ROOT_LIBMAP)
+ mark_as_advanced(ROOT_LIBMAP)
# Check for rootcint
find_program(ROOT_CINT NAMES rootcint PATHS ${ROOTSYS}/bin NO_DEFAULT_PATH)
else()
message(FATAL_ERROR "Could not find rootcint executable.")
endif(ROOT_CINT)
+ mark_as_advanced(ROOT_CINT)
# Checking ROOT version
execute_process(COMMAND ${ROOT_CONFIG} --version OUTPUT_VARIABLE ROOT_VERSION ERROR_VARIABLE error OUTPUT_STRIP_TRAILING_WHITESPACE )
if(DAQDAH-NOTFOUND)
message(FATAL_ERROR "daqDA enabled but daqDA.h not found. Please check that daqDA points to your installation")
endif(DAQDAH-NOTFOUND)
-
+ mark_as_advanced(DAQDAH)
+
find_path(DAQDALIB libdaqDA.a PATHS ${daqDA})
if(DAQDALIB-NOTFOUND)
message(FATAL_ERROR "daqDA enabled but libdaqDA.a not found. Please check that daqDA points to your installation")
endif(DAQDALIB-NOTFOUND)
+ mark_as_advanced(DAQDALIB)
set(daqDA_FOUND TRUE)
endif(daqDA)
\ No newline at end of file