Fix for coverity (AdC)
[u/mrichter/AliRoot.git] / MONITOR / CMakebinalieventserver.pkg
CommitLineData
7e0cf530 1#--------------------------------------------------------------------------------#
2# Package File for alionlinemonitor #
3# Author : Johny Jose (johny.jose@cern.ch) #
4# Variables Defined : #
5# #
6# SRCS - C++ source files #
7# HDRS - C++ header files #
8# DHDR - ROOT Dictionary Linkdef header file #
9# CSRCS - C source files #
10# CHDRS - C header files #
11# EINCLUDE - Include directories #
12# EDEFINE - Compiler definitions #
13# ELIBS - Extra libraries to link #
14# ELIBSDIR - Extra library directories #
15# PACKFFLAGS - Fortran compiler flags for package #
16# PACKCXXFLAGS - C++ compiler flags for package #
17# PACKCFLAGS - C compiler flags for package #
18# PACKSOFLAGS - Shared library linking flags #
19# PACKLDFLAGS - Module linker flags #
20# PACKBLIBS - Libraries to link (Executables only) #
21# EXPORT - Header files to be exported #
22# CINTHDRS - Dictionary header files #
23# CINTAUTOLINK - Set automatic dictionary generation #
24# ARLIBS - Archive Libraries and objects for linking (Executables only) #
25# SHLIBS - Shared Libraries and objects for linking (Executables only) #
26#--------------------------------------------------------------------------------#
27
28set ( SRCS alieventserver.cxx)
29
30set ( EINCLUDE ${EINCLUDE} TPC ITS RAW)
31
32set ( PACKBLIBS ${ROOTCLIBS} ${SYSLIBS})
33
34set ( ELIBSDIR )
35
7e0cf530 36set ( ELIBS MUONevaluation MUONmapping MUONshuttle MUONgraphics MUONsim MUONrec MUONgeometry MUONcalib MUONbase MUONraw MUONtrigger MUONcore TPCbase TPCsim TPCrec 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 MFTbase MFTsim MFTrec EMCALUtils EMCALbase EMCALsim EMCALrec EMCALraw BCM STRUCT T0base T0sim T0rec FASTSIM microcern HLTbase TRIGGERbase STEER STAT CDB AOD STEERBase ESD ANALYSIS RAWDatasim RAWDatarec RAWDatabase)
7e0cf530 37
38if(PYTHIA6)
39 list(APPEND ELIBS EVGEN)
40endif(PYTHIA6)
41
42if( ALICE_TARGET STREQUAL "macosx")
43
44 string(REGEX REPLACE "(microcern|lhapdf|herwig)" "" ELIBS "${ELIBS}")
45
46 ALICE_Format(PACKLDFLAGS "-Wl,-u,_G__cpp_setupG__" "" "${LDFLAGS};${ELIBSCPP}")
47 string ( REPLACE "%" "-Wl,-u,_G__cpp_setupG__%" PACKLDFLAGS "${LDFLAGS} ${ELIBSCPP}" )
48
49 set ( ELIBSDIR ${ELIBSDIR} ${FINK_ROOT}/lib)
50
51endif( ALICE_TARGET STREQUAL "macosx")
52
38e7ce48 53set (ARPACKS FMDbase FMDsim FMDrec 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 ITSbase ITSsim ITSrec STRUCT TPCbase TPCsim TPCrec TPCfast STEER CDB ESD STEERBase RAWDatabase RAWDatasim RAWDatarec MDC TRIGGERbase)
7e0cf530 54
55set(GFILES)
56foreach (pkg ${ARPACKS})
57# foreach(mod ${MODDIRS})
58# string(REGEX MATCH "${mod}" DIR ${pkg})
59# if(DIR)
60# list(APPEND GFILES "${CMAKE_BINARY_DIR}/${DIR}/CMakeFiles/${pkg}_a.dir/G__${pkg}.cxx.o" )
61# set_source_files_properties("G${pkg}" PROPERTIES GENERATED TRUE )
62# set_source_files_properties("G__${pkg}.cxx" PROPERTIES GENERATED TRUE)
63 list(APPEND AFILES "${pkg}_a")
64
65# endif(DIR)
66# endforeach(mod)
67endforeach(pkg)
68set (ARLIBS ${AFILES})
69list(APPEND SRCS ${GFILES})
70set ( SHLIBS ${BINLIBDIRS} EVGEN -lEGPythia6 Pythia6 -lpythia6 AliPythia6 lhapdf THijing hijing THerwig herwig TPHIC FASTSIM microcern)
71
72set ( EINCLUDE STEER/STEER )
4b4ef58d 73set ( ELIBS ${ELIBS} MONITOR MONITORzmq )
7e0cf530 74
75
76set ( DATE_ROOT $ENV{DATE_ROOT})
77
78if (DATE_ROOT)
79 set ( PACKBLIBS ${PACKBLIBS} ${DMONLIBS})
80 set ( ELIBSDIR )
81 set ( EINCLUDE ${EINCLUDE} ${DATE_COMMON_DEFS} ${DATE_MONITOR_DIR})
82endif (DATE_ROOT)
83
84set (DIMDIR $ENV{DIMDIR})
85set (ODIR $ENV{ODIR})
86
87if (DIMDIR)
88 set ( EINCLUDE ${EINCLUDE} ${DIMDIR}/dim)
89 set ( ELIBS ${ELIBS} dim)
90 set ( ELIBSDIR ${ELIBSDIR} ${DIMDIR}/${ODIR})
91endif (DIMDIR)
92
93if( ALICE_TARGET MATCHES "macosx")
94
95 ALICE_Format (TEMP "-Wl,-u,_G__cpp_setupG__" "" ${ELIBS})
96 set(PACKLDFLAGS "${LDFLAGS} ${TEMP}")
97
98endif( ALICE_TARGET MATCHES "macosx")