New detector AD
[u/mrichter/AliRoot.git] / ALIROOT / CMakebinaliroot.pkg
CommitLineData
7330f0e5 1# -*- mode: CMake -*-
d9298a37 2#-----------------------------------------------------------------------#
6db31708 3# Package File for aliroot #
4# Author : Johny Jose (johny.jose@cern.ch) #
5# Variables Defined : #
6# #
7# SRCS - C++ source files #
8# HDRS - C++ header files #
9# DHDR - ROOT Dictionary Linkdef header file #
10# CSRCS - C source files #
11# CHDRS - C header files #
12# EINCLUDE - Include directories #
13# EDEFINE - Compiler definitions #
14# ELIBS - Extra libraries to link #
15# ELIBSDIR - Extra library directories #
16# PACKFFLAGS - Fortran compiler flags for package #
17# PACKCXXFLAGS - C++ compiler flags for package #
18# PACKCFLAGS - C compiler flags for package #
19# PACKSOFLAGS - Shared library linking flags #
20# PACKLDFLAGS - Module linker flags #
21# PACKBLIBS - Libraries to link (Executables only) #
22# EXPORT - Header files to be exported #
23# CINTHDRS - Dictionary header files #
24# CINTAUTOLINK - Set automatic dictionary generation #
25# ARLIBS - Archive Libraries and objects for linking (Executables only) #
26# SHLIBS - Shared Libraries and objects for linking (Executables only) #
d9298a37 27#-----------------------------------------------------------------------#
6db31708 28
29set ( SRCS aliroot.cxx)
30set ( CSRCS fpu.c)
31
32set ( ELIBSDIR )
33
820b4d9e 34set(MFT_UPGRADE $ENV{MFT_UPGRADE})
35
36if(MFT_UPGRADE)
5e319bd5 37set ( ELIBS MUONevaluation MUONmapping MUONshuttle MUONgraphics MUONsim MUONrec MUONgeometry MUONcalib MUONbase MUONraw MUONtrigger MUONcore TPCbase TPCsim TPCrec TPCutil ITSbase ITSsim ITSrec PMDbase PMDsim PMDrec TRDbase TRDsim TRDrec FMDbase FMDsim FMDrec TOFbase TOFrec TOFsim PHOSUtils PHOSbase PHOSsim PHOSrec ADbase ADsim ADrec ACORDEbase ACORDEsim ACORDErec HMPIDbase HMPIDrec HMPIDsim ZDCbase ZDCsim ZDCrec VZERObase VZEROsim VZEROrec MFTbase MFTsim MFTrec EMCALUtils EMCALbase EMCALsim EMCALrec EMCALraw BCM STRUCT T0base T0sim T0rec FASTSIM microcern HLTbase HLTshuttle TRIGGERbase STEER STAT CDB AOD STEERBase ESD ANALYSIS RAWDatasim RAWDatarec RAWDatabase)
820b4d9e 38else(MFT_UPGRADE)
5e319bd5 39set ( ELIBS MUONevaluation MUONmapping MUONshuttle MUONgraphics MUONsim MUONrec MUONgeometry MUONcalib MUONbase MUONraw MUONtrigger MUONcore TPCbase TPCsim TPCrec TPCutil ITSbase ITSsim ITSrec PMDbase PMDsim PMDrec TRDbase TRDsim TRDrec FMDbase FMDsim FMDrec TOFbase TOFrec TOFsim PHOSUtils PHOSbase PHOSsim PHOSrec ADbase ADsim ADrec ACORDEbase ACORDEsim ACORDErec HMPIDbase HMPIDrec HMPIDsim ZDCbase ZDCsim ZDCrec VZERObase VZEROsim VZEROrec EMCALUtils EMCALbase EMCALsim EMCALrec EMCALraw BCM STRUCT T0base T0sim T0rec FASTSIM microcern HLTbase HLTshuttle TRIGGERbase STEER STAT CDB AOD STEERBase ESD ANALYSIS RAWDatasim RAWDatarec RAWDatabase)
820b4d9e 40endif(MFT_UPGRADE)
6db31708 41
42if(PYTHIA6)
43 list(APPEND ELIBS EVGEN)
44endif(PYTHIA6)
45
46if( ALICE_TARGET STREQUAL "macosx")
47
06b08d4a 48 string(REGEX REPLACE "(microcern|lhapdf|herwig)" "" ELIBS "${ELIBS}")
6db31708 49
50 ALICE_Format(PACKLDFLAGS "-Wl,-u,_G__cpp_setupG__" "" "${LDFLAGS};${ELIBSCPP}")
06b08d4a 51 string ( REPLACE "%" "-Wl,-u,_G__cpp_setupG__%" PACKLDFLAGS "${LDFLAGS} ${ELIBSCPP}" )
6db31708 52
53 set ( ELIBSDIR ${ELIBSDIR} ${FINK_ROOT}/lib)
54
55endif( ALICE_TARGET STREQUAL "macosx")
56
820b4d9e 57if(MFT_UPGRADE)
5e319bd5 58 set (ARPACKS FMDbase FMDsim FMDrec ADbase ADsim ADrec ACORDEbase ACORDEsim ACORDErec HMPIDbase HMPIDsim HMPIDrec ZDCbase ZDCsim ZDCrec VZERObase VZEROsim VZEROrec MFTbase MFTsim MFTrec EMCALUtils EMCALbase EMCALsim EMCALrec T0base T0sim T0rec TOFbase TOFsim TOFrec TRDbase TRDsim TRDrec PMDbase PMDsim PMDrec MUONmapping MUONmapping MUONgeometry MUONbase MUONsim MUONrec MUONraw PHOSUtils PHOSbase PHOSsim PHOSrec HLTbase HLTshuttle ITSbase ITSsim ITSrec STRUCT TPCbase TPCsim TPCrec TPCutil STEER CDB ESD STEERBase RAWDatabase RAWDatasim RAWDatarec MDC TRIGGERbase)
820b4d9e 59else(MFT_UPGRADE)
5e319bd5 60 set (ARPACKS FMDbase FMDsim FMDrec ADbase ADsim ADrec ACORDEbase ACORDEsim ACORDErec HMPIDbase HMPIDsim HMPIDrec ZDCbase ZDCsim ZDCrec VZERObase VZEROsim VZEROrec EMCALUtils EMCALbase EMCALsim EMCALrec T0base T0sim T0rec TOFbase TOFsim TOFrec TRDbase TRDsim TRDrec PMDbase PMDsim PMDrec MUONmapping MUONmapping MUONgeometry MUONbase MUONsim MUONrec MUONraw PHOSUtils PHOSbase PHOSsim PHOSrec HLTbase HLTshuttle ITSbase ITSsim ITSrec STRUCT TPCbase TPCsim TPCrec TPCutil STEER CDB ESD STEERBase RAWDatabase RAWDatasim RAWDatarec MDC TRIGGERbase)
820b4d9e 61endif(MFT_UPGRADE)
6db31708 62
63set(GFILES)
64foreach (pkg ${ARPACKS})
65# foreach(mod ${MODDIRS})
66# string(REGEX MATCH "${mod}" DIR ${pkg})
67# if(DIR)
68# list(APPEND GFILES "${CMAKE_BINARY_DIR}/${DIR}/CMakeFiles/${pkg}_a.dir/G__${pkg}.cxx.o" )
69# set_source_files_properties("G${pkg}" PROPERTIES GENERATED TRUE )
70# set_source_files_properties("G__${pkg}.cxx" PROPERTIES GENERATED TRUE)
71 list(APPEND AFILES "${pkg}_a")
72
73# endif(DIR)
74# endforeach(mod)
75endforeach(pkg)
76set (ARLIBS ${AFILES})
77list(APPEND SRCS ${GFILES})
78set ( SHLIBS ${BINLIBDIRS} EVGEN -lEGPythia6 Pythia6 -lpythia6 AliPythia6 lhapdf THijing hijing THerwig herwig TPHIC FASTSIM microcern)
7330f0e5 79
80set ( EINCLUDE STEER/STEER )
d9298a37 81#
82# EOF
83#