More code clean up.
[u/mrichter/AliRoot.git] / HLT / CMakelibAliHLTHOMER.pkg
1 #--------------------------------------------------------------------------------#
2 # Package File for AliHLTHOMER                                                   #
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  include ("CMakehlt.conf")
28
29 set ( CLASS_HDRS        AliHLTHOMERReader.h AliHLTHOMERWriter.h)
30
31 set ( MODULE_HDRS       ${CLASS_HDRS} AliHLTHOMERData.h)
32
33 string ( REPLACE ".h" ".cxx" MODULE_SRCS "${CLASS_HDRS}" )
34
35 set ( MODULE_DHDR       AliHLTHOMERLinkDef.h)
36
37 if (MODULE_SRCS)
38 ALICE_Format (SRCS "BASE/HOMER/" "" "${MODULE_SRCS}")
39 endif(MODULE_SRCS)
40 if (CLASS_HDRS)
41 ALICE_Format (CINTHDRS "BASE/HOMER/" "" "${CLASS_HDRS}")
42 endif(CLASS_HDRS)
43 if (MODULE_HDRS)
44 ALICE_Format (HDRS "BASE/HOMER/" "" "${MODULE_HDRS}")
45 endif(MODULE_HDRS)
46 if (MODULE_DHDR)
47 ALICE_Format (DHDR "BASE/HOMER/" "" "${MODULE_DHDR}")
48 endif(MODULE_DHDR)
49
50 if(NOT DHDR)
51   set(CINTAUTOLINK 1)
52 endif(NOT DHDR)
53
54 set ( EDEFINE  ${HLTDEFS})
55 add_definitions("-DUSE_ROOT")
56 set ( PACKCXXFLAGS  ${HLTCXXFLAGS})
57 set ( PACKCFLAGS ${HLTCLFAGS})
58 set ( PACKDCXXFLAGS ${HLTDCXXFLAGS})
59 set ( CINTFLAGS ${CINTFLAGS}  -DUSE_ROOT)
60