CMake pkg file to compile AliHLTFJWrapper library. Disabled by default.
[u/mrichter/AliRoot.git] / HLT / CMakelibAliHLTFJW.pkg.noFJ
CommitLineData
6e3d67e8 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
34set ( CLASS_HDRS
35 AliFJWrapper.h
36 )
37
38include ("FJWrapper/CMakejet.conf")
39
40set(FASTJETENV $ENV{FASTJET})
41
42if(FASTJETENV)
43 set ( EDEFINE -isystem${FASTJETENV}/include/fastjet )
44else()
45 set ( EDEFINE -isystem${ALICE_ROOT}/JETAN/fastjet)
46endif(FASTJETENV)
47
48
49string ( REPLACE ".h" ".cxx" MODULE_SRCS "${CLASS_HDRS}" )
50
51set ( MODULE_HDRS ${CLASS_HDRS})
52
53set ( MODULE_DHDR )
54
55set ( EINCLUDE HLT/BASE HLT/BASE/util STEER/AOD STEER/ESD STEER/STEERBase ${FASTJETENV}/include/fastjet JETAN/fastjet)
56
57set ( ELIBS "HLTbase AliHLTUtil ESD STEER STEERBase AOD ESD ANALYSIS ANALYSISalice JETAN -lEG")
58
59set ( ELIBSDIR "${ROOTLIBDIR}" )
60
61include ("CMakehlt.conf")
62
63if (MODULE_SRCS)
64ALICE_Format (SRCS "FJWrapper/" "" "${MODULE_SRCS}")
65endif(MODULE_SRCS)
66if (CLASS_HDRS)
67ALICE_Format (CINTHDRS "FJWrapper/" "" "${CLASS_HDRS}")
68endif(CLASS_HDRS)
69if (MODULE_HDRS)
70ALICE_Format (HDRS "FJWrapper/" "" "${MODULE_HDRS}")
71endif(MODULE_HDRS)
72if (MODULE_DHDR)
73ALICE_Format (DHDR "FJWrapper/" "" "${MODULE_DHDR}")
74endif(MODULE_DHDR)
75
76if(NOT DHDR)
77 set(CINTAUTOLINK 1)
78endif(NOT DHDR)
79
80set ( EDEFINE "${HLTDEFS} ${HLTDEF_FASTJET} ${HLTCXXFLAGS_FASTJET}")
81set ( PACKCXXFLAGS "${HLTCXXFLAGS} ${HLTCXXFLAGS_FASTJET}")
82set ( PACKCFLAGS ${HLTCLFAGS})
83set ( PACKDCXXFLAGS ${HLTDCXXFLAGS})
84set ( PACKSOFLAGS "${HLTSOFLAGS_FASTJET} ${HLTSOFLAGS}")