From 8bb508eb6b4033c10cfa1beb21a998b73516b308 Mon Sep 17 00:00:00 2001 From: agrigora Date: Wed, 5 Nov 2014 10:38:03 +0100 Subject: [PATCH] HLTrec --- HLT/CMakeLists.txt | 1 + HLT/rec/CMakeLists.txt | 79 +++++++++++++++++++++++++++++++++++++++++ HLT/rec/HLTrecLinkDef.h | 21 +++++++++++ 3 files changed, 101 insertions(+) create mode 100644 HLT/rec/CMakeLists.txt create mode 100644 HLT/rec/HLTrecLinkDef.h diff --git a/HLT/CMakeLists.txt b/HLT/CMakeLists.txt index 68398c55870..2f5b4ff84fc 100644 --- a/HLT/CMakeLists.txt +++ b/HLT/CMakeLists.txt @@ -55,6 +55,7 @@ if(ROOT_HASOPENGL STREQUAL "yes") add_subdirectory(EVE) endif() add_subdirectory(QA) +add_subdirectory(rec) #file(GLOB PACKAGES CMake*.pkg) diff --git a/HLT/rec/CMakeLists.txt b/HLT/rec/CMakeLists.txt new file mode 100644 index 00000000000..d67d3ef2723 --- /dev/null +++ b/HLT/rec/CMakeLists.txt @@ -0,0 +1,79 @@ +# ************************************************************************** +# * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. * +# * * +# * Author: The ALICE Off-line Project. * +# * Contributors are mentioned in the code where appropriate. * +# * * +# * Permission to use, copy, modify and distribute this software and its * +# * documentation strictly for non-commercial purposes is hereby granted * +# * without fee, provided that the above copyright notice appears in all * +# * copies and that both the copyright notice and this permission notice * +# * appear in the supporting documentation. The authors make no claims * +# * about the suitability of this software for any purpose. It is * +# * provided "as is" without express or implied warranty. * +# ************************************************************************** + +# Module +set(MODULE HLTrec) + +# Module include folder +include_directories(${AliRoot_SOURCE_DIR}/HLT/rec) + +# Additional include folders in alphabetical order except ROOT +include_directories(${ROOT_INCLUDE_DIRS} + ${AliRoot_SOURCE_DIR}/HLT/BASE + ${AliRoot_SOURCE_DIR}/HLT/BASE/HOMER + ${AliRoot_SOURCE_DIR}/RAW/RAWDatabase + ${AliRoot_SOURCE_DIR}/RAW/RAWDatarec + ${AliRoot_SOURCE_DIR}/STEER/CDB + ${AliRoot_SOURCE_DIR}/STEER/ESD + ${AliRoot_SOURCE_DIR}/STEER/STEER + ${AliRoot_SOURCE_DIR}/STEER/STEERBase + ) + +# Sources in alphabetical order +set(SRCS + AliHLTDAQInterfaceImplementation.cxx + AliHLTEsdManagerImplementation.cxx + AliHLTMiscImplementation.cxx + AliHLTOUTDigitReader.cxx + AliHLTOUTHomerCollection.cxx + AliHLTOUTRawReader.cxx + AliHLTReconstructor.cxx + AliRawReaderHLT.cxx + ) + +# Headers from sources +string(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +set(SRCS ${SRCS} + AliHLTDynamicAliLog.cxx + ) + +# Generate the dictionary +# It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument +get_directory_property(incdirs INCLUDE_DIRECTORIES) +generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}") + +# Generate the ROOT map +# Dependecies +set(LIBDEPS STEERBase STEER ESD CDB RAWDatabase RAWDatarec HLTbase AliHLTHOMER) +generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h") + +# Add a library to the project using the specified source files +add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx) + +# Additional compilation flags +set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g") + +# System dependent: Modify the way the library is build +if(${CMAKE_SYSTEM} MATCHES Darwin) + set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") +endif(${CMAKE_SYSTEM} MATCHES Darwin) + +# Installation +install(TARGETS ${MODULE} + ARCHIVE DESTINATION lib + LIBRARY DESTINATION lib) + +install(FILES ${HDRS} DESTINATION include) \ No newline at end of file diff --git a/HLT/rec/HLTrecLinkDef.h b/HLT/rec/HLTrecLinkDef.h new file mode 100644 index 00000000000..f8594c95822 --- /dev/null +++ b/HLT/rec/HLTrecLinkDef.h @@ -0,0 +1,21 @@ +// Auto generated file - do not edit +#if !defined(__CINT__) && !defined(__CLING__) +# error Not for compilation +#else +#pragma link off all globals; +#pragma link off all classes; +#pragma link off all functions; + +#pragma link C++ class AliHLTReconstructor+; +#pragma link C++ class AliRawReaderHLT+; +#pragma link C++ class AliHLTOUTHomerCollection+; +#pragma link C++ class AliHLTEsdManagerImplementation+; +#pragma link C++ class AliHLTDAQInterfaceImplementation+; +#pragma link C++ class AliHLTOUTDigitReader+; +#pragma link C++ class AliHLTMiscImplementation+; +#pragma link C++ class AliHLTOUTRawReader+; + +#endif // __CINT__ +// +// EOF +// -- 2.43.0