Update master to aliroot
[u/mrichter/AliRoot.git] / HLT / CMakelibAliHLTFJW.pkg.noFJ
1 # -*- mode: CMake -*- 
2 # $Id: CMakelibAliHLTJET.pkg 50615 2011-07-16 23:19:19Z hristov $
3 #
4 # remove .noFJ extension to compile fastjet wrapper library
5 # needed by trigger/AliHLTTriggerFastJet
6
7 #--------------------------------------------------------------------------------#
8 # Package File for AliHLTJET                                                     #
9 # Author : Johny Jose (johny.jose@cern.ch)                                       #
10 # Variables Defined :                                                            #
11 #                                                                                #
12 # SRCS - C++ source files                                                        #
13 # HDRS - C++ header files                                                        #
14 # DHDR - ROOT Dictionary Linkdef header file                                     #
15 # CSRCS - C source files                                                         #
16 # CHDRS - C header files                                                         #
17 # EINCLUDE - Include directories                                                 #
18 # EDEFINE - Compiler definitions                                                 #
19 # ELIBS - Extra libraries to link                                                #
20 # ELIBSDIR - Extra library directories                                           #
21 # PACKFFLAGS - Fortran compiler flags for package                                #
22 # PACKCXXFLAGS - C++ compiler flags for package                                  #
23 # PACKCFLAGS - C compiler flags for package                                      #
24 # PACKSOFLAGS - Shared library linking flags                                     #
25 # PACKLDFLAGS - Module linker flags                                              #
26 # PACKBLIBS - Libraries to link (Executables only)                               #
27 # EXPORT - Header files to be exported                                           #
28 # CINTHDRS - Dictionary header files                                             #
29 # CINTAUTOLINK - Set automatic dictionary generation                             #
30 # ARLIBS - Archive Libraries and objects for linking (Executables only)          #
31 # SHLIBS - Shared Libraries and objects for linking (Executables only)           #
32 #--------------------------------------------------------------------------------#
33
34 set ( CLASS_HDRS
35       AliFJWrapper.h
36     )
37
38 include ("FJWrapper/CMakejet.conf")
39
40 set(FASTJETENV $ENV{FASTJET})
41
42 if(FASTJETENV)
43   set ( EDEFINE -isystem${FASTJETENV}/include/fastjet )
44 else()
45   set ( EDEFINE -isystem${ALICE_ROOT}/JETAN/fastjet)
46 endif(FASTJETENV)
47
48
49 string ( REPLACE ".h" ".cxx" MODULE_SRCS "${CLASS_HDRS}" )
50
51 set ( MODULE_HDRS       ${CLASS_HDRS})
52
53 set ( MODULE_DHDR )
54
55 set ( EINCLUDE  HLT/BASE HLT/BASE/util STEER/AOD STEER/ESD STEER/STEERBase ${FASTJETENV}/include/fastjet JETAN/fastjet)
56
57 set ( ELIBS     "HLTbase AliHLTUtil ESD STEER STEERBase AOD ESD ANALYSIS ANALYSISalice JETAN -lEG")
58
59 set ( ELIBSDIR "${ROOTLIBDIR}" )
60
61 include ("CMakehlt.conf")
62
63 if (MODULE_SRCS)
64 ALICE_Format (SRCS "FJWrapper/" "" "${MODULE_SRCS}")
65 endif(MODULE_SRCS)
66 if (CLASS_HDRS)
67 ALICE_Format (CINTHDRS "FJWrapper/" "" "${CLASS_HDRS}")
68 endif(CLASS_HDRS)
69 if (MODULE_HDRS)
70 ALICE_Format (HDRS "FJWrapper/" "" "${MODULE_HDRS}")
71 endif(MODULE_HDRS)
72 if (MODULE_DHDR)
73 ALICE_Format (DHDR "FJWrapper/" "" "${MODULE_DHDR}")
74 endif(MODULE_DHDR)
75
76 if(NOT DHDR)
77   set(CINTAUTOLINK 1)
78 endif(NOT DHDR)
79
80 set ( EDEFINE   "${HLTDEFS} ${HLTDEF_FASTJET} ${HLTCXXFLAGS_FASTJET}")
81 set ( PACKCXXFLAGS      "${HLTCXXFLAGS} ${HLTCXXFLAGS_FASTJET}")
82 set ( PACKCFLAGS        ${HLTCLFAGS})
83 set ( PACKDCXXFLAGS     ${HLTDCXXFLAGS})
84 set ( PACKSOFLAGS "${HLTSOFLAGS_FASTJET} ${HLTSOFLAGS}")