Completely reengineered version of CMake build system (Johny)
[u/mrichter/AliRoot.git] / HLT / CMakelibAliHLTSample.pkg
CommitLineData
6db31708 1#--------------------------------------------------------------------------------#
2# Package File for AliHLTSample #
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 ( CLASS_HDRS AliHLTSampleComponent1.h AliHLTSampleComponent2.h AliHLTSampleCalibrationComponent.h AliHLTSampleESDAnalysisComponent.h AliHLTSampleRawAnalysisComponent.h AliHLTSampleMonitoringComponent.h AliHLTAgentSample.h AliHLTSamplePreprocessor.h AliHLTSampleOfflineSinkComponent.h AliHLTDummyComponent.h)
29
30string ( REPLACE ".h" ".cxx" MODULE_SRCS "${CLASS_HDRS}" )
31
32set ( MODULE_HDRS ${CLASS_HDRS})
33
34set ( MODULE_DHDR )
35
36set ( EINCLUDE HLT/BASE HLT/shuttle HLT/SampleLib STEER RAW)
37
38set ( LIBRARY_DEP -lHLTbase -lCDB -lSTEERBase)
39
40include ("CMakehlt.conf")
41
42if (MODULE_SRCS)
43ALICE_Format (SRCS "SampleLib/" "" "${MODULE_SRCS}")
44endif(MODULE_SRCS)
45if (CLASS_HDRS)
46ALICE_Format (CINTHDRS "SampleLib/" "" "${CLASS_HDRS}")
47endif(CLASS_HDRS)
48if (MODULE_HDRS)
49ALICE_Format (HDRS "SampleLib/" "" "${MODULE_HDRS}")
50endif(MODULE_HDRS)
51if (MODULE_DHDR)
52ALICE_Format (DHDR "SampleLib/" "" "${MODULE_DHDR}")
53endif(MODULE_DHDR)
54
55if(NOT DHDR)
56 set(CINTAUTOLINK 1)
57endif(NOT DHDR)
58
59set ( EDEFINE ${HLTDEFS})
60string ( REGEX REPLACE "(-ansi|-pedantic-errors)" "" PACKCXXFLAGS ${CXXFLAGS})
61string ( REGEX REPLACE "(-ansi|-pedantic-errors)" "" PACKCFLAGS ${CFLAGS})
62string ( REPLACE "-pedantic-errors" "" PACKDCXXFLAGS ${CXXFLAGS})
63set ( PACKSOFLAGS ${HLTSOFLAGS})