Be sure to load mapping when needed
[u/mrichter/AliRoot.git] / ALIROOT / CMakebinaliroot.pkg
CommitLineData
7330f0e5 1# -*- mode: CMake -*-
6db31708 2#--------------------------------------------------------------------------------#
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) #
27#--------------------------------------------------------------------------------#
28
29set ( SRCS aliroot.cxx)
30set ( CSRCS fpu.c)
31
32set ( ELIBSDIR )
33
92d9f317 34set ( ELIBS MUONevaluation MUONmapping MUONshuttle MUONgraphics MUONsim MUONrec MUONgeometry MUONcalib MUONbase MUONraw MUONtrigger MUONcore TPCbase TPCsim TPCrec TPCfast ITSbase ITSsim ITSrec PMDbase PMDsim PMDrec TRDbase TRDsim TRDrec FMDbase FMDsim FMDrec TOFbase TOFrec TOFsim PHOSUtils PHOSbase PHOSsim PHOSrec 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 TRIGGERbase STEER STAT CDB AOD STEERBase ESD RAWDatasim RAWDatarec RAWDatabase)
6db31708 35
36if(PYTHIA6)
37 list(APPEND ELIBS EVGEN)
38endif(PYTHIA6)
39
40if( ALICE_TARGET STREQUAL "macosx")
41
06b08d4a 42 string(REGEX REPLACE "(microcern|lhapdf|herwig)" "" ELIBS "${ELIBS}")
6db31708 43
44 ALICE_Format(PACKLDFLAGS "-Wl,-u,_G__cpp_setupG__" "" "${LDFLAGS};${ELIBSCPP}")
06b08d4a 45 string ( REPLACE "%" "-Wl,-u,_G__cpp_setupG__%" PACKLDFLAGS "${LDFLAGS} ${ELIBSCPP}" )
6db31708 46
47 set ( ELIBSDIR ${ELIBSDIR} ${FINK_ROOT}/lib)
48
49endif( ALICE_TARGET STREQUAL "macosx")
50
51set (ARPACKS FMDbase FMDsim FMDrec 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 ITSbase ITSsim ITSrec STRUCT TPCbase TPCsim TPCrec TPCfast STEER CDB ESD STEERBase RAWDatabase RAWDatasim RAWDatarec MDC TRIGGERbase)
52
53set(GFILES)
54foreach (pkg ${ARPACKS})
55# foreach(mod ${MODDIRS})
56# string(REGEX MATCH "${mod}" DIR ${pkg})
57# if(DIR)
58# list(APPEND GFILES "${CMAKE_BINARY_DIR}/${DIR}/CMakeFiles/${pkg}_a.dir/G__${pkg}.cxx.o" )
59# set_source_files_properties("G${pkg}" PROPERTIES GENERATED TRUE )
60# set_source_files_properties("G__${pkg}.cxx" PROPERTIES GENERATED TRUE)
61 list(APPEND AFILES "${pkg}_a")
62
63# endif(DIR)
64# endforeach(mod)
65endforeach(pkg)
66set (ARLIBS ${AFILES})
67list(APPEND SRCS ${GFILES})
68set ( SHLIBS ${BINLIBDIRS} EVGEN -lEGPythia6 Pythia6 -lpythia6 AliPythia6 lhapdf THijing hijing THerwig herwig TPHIC FASTSIM microcern)
7330f0e5 69
70set ( EINCLUDE STEER/STEER )