ROOT map generation + RAW module
authoragrigora <alina.grigoras@cern.ch>
Thu, 2 Oct 2014 15:31:01 +0000 (17:31 +0200)
committeragrigora <alina.grigoras@cern.ch>
Mon, 15 Dec 2014 12:51:22 +0000 (13:51 +0100)
117 files changed:
ANALYSIS/ANALYSIS/CMakeLists.txt
ANALYSIS/ANALYSISalice/CMakeLists.txt
ANALYSIS/ANALYSIScalib/CMakeLists.txt
ANALYSIS/ESDfilter/CMakeLists.txt
ANALYSIS/EventMixing/CMakeLists.txt
ANALYSIS/Tender/CMakeLists.txt
ANALYSIS/TenderSupplies/CMakeLists.txt
OADB/CMakeLists.txt
RAW/CMakelibRAWDatarecOnline.pkg
RAW/MDC/AliMDC.cxx [moved from RAW/AliMDC.cxx with 100% similarity]
RAW/MDC/AliMDC.h [moved from RAW/AliMDC.h with 100% similarity]
RAW/MDC/AliRawCastorDB.cxx [moved from RAW/AliRawCastorDB.cxx with 100% similarity]
RAW/MDC/AliRawCastorDB.h [moved from RAW/AliRawCastorDB.h with 100% similarity]
RAW/MDC/AliRawDB.cxx [moved from RAW/AliRawDB.cxx with 100% similarity]
RAW/MDC/AliRawDB.h [moved from RAW/AliRawDB.h with 100% similarity]
RAW/MDC/AliRawNullDB.cxx [moved from RAW/AliRawNullDB.cxx with 100% similarity]
RAW/MDC/AliRawNullDB.h [moved from RAW/AliRawNullDB.h with 100% similarity]
RAW/MDC/AliRawRFIODB.cxx [moved from RAW/AliRawRFIODB.cxx with 100% similarity]
RAW/MDC/AliRawRFIODB.h [moved from RAW/AliRawRFIODB.h with 100% similarity]
RAW/MDC/AliRawRootdDB.cxx [moved from RAW/AliRawRootdDB.cxx with 100% similarity]
RAW/MDC/AliRawRootdDB.h [moved from RAW/AliRawRootdDB.h with 100% similarity]
RAW/MDC/AliTagDB.cxx [moved from RAW/AliTagDB.cxx with 100% similarity]
RAW/MDC/AliTagDB.h [moved from RAW/AliTagDB.h with 100% similarity]
RAW/MDC/AliTagNullDB.cxx [moved from RAW/AliTagNullDB.cxx with 100% similarity]
RAW/MDC/AliTagNullDB.h [moved from RAW/AliTagNullDB.h with 100% similarity]
RAW/MDC/CMakeLists.txt [new file with mode: 0644]
RAW/MDC/MDCLinkDef.h [moved from RAW/MDCLinkDef.h with 100% similarity]
RAW/MDC/mdc.cxx [moved from RAW/mdc.cxx with 100% similarity]
RAW/MDC/mdc.h [moved from RAW/mdc.h with 100% similarity]
RAW/RAWDatabase/AliAltroMapping.cxx [moved from RAW/AliAltroMapping.cxx with 100% similarity]
RAW/RAWDatabase/AliAltroMapping.h [moved from RAW/AliAltroMapping.h with 100% similarity]
RAW/RAWDatabase/AliCaloAltroMapping.cxx [moved from RAW/AliCaloAltroMapping.cxx with 100% similarity]
RAW/RAWDatabase/AliCaloAltroMapping.h [moved from RAW/AliCaloAltroMapping.h with 100% similarity]
RAW/RAWDatabase/AliRawData.cxx [moved from RAW/AliRawData.cxx with 100% similarity]
RAW/RAWDatabase/AliRawData.h [moved from RAW/AliRawData.h with 100% similarity]
RAW/RAWDatabase/AliRawDataArray.cxx [moved from RAW/AliRawDataArray.cxx with 100% similarity]
RAW/RAWDatabase/AliRawDataArray.h [moved from RAW/AliRawDataArray.h with 100% similarity]
RAW/RAWDatabase/AliRawDataArrayV2.cxx [moved from RAW/AliRawDataArrayV2.cxx with 100% similarity]
RAW/RAWDatabase/AliRawDataArrayV2.h [moved from RAW/AliRawDataArrayV2.h with 100% similarity]
RAW/RAWDatabase/AliRawEquipment.cxx [moved from RAW/AliRawEquipment.cxx with 100% similarity]
RAW/RAWDatabase/AliRawEquipment.h [moved from RAW/AliRawEquipment.h with 100% similarity]
RAW/RAWDatabase/AliRawEquipmentHeader.cxx [moved from RAW/AliRawEquipmentHeader.cxx with 100% similarity]
RAW/RAWDatabase/AliRawEquipmentHeader.h [moved from RAW/AliRawEquipmentHeader.h with 100% similarity]
RAW/RAWDatabase/AliRawEquipmentV2.cxx [moved from RAW/AliRawEquipmentV2.cxx with 100% similarity]
RAW/RAWDatabase/AliRawEquipmentV2.h [moved from RAW/AliRawEquipmentV2.h with 100% similarity]
RAW/RAWDatabase/AliRawEvent.cxx [moved from RAW/AliRawEvent.cxx with 100% similarity]
RAW/RAWDatabase/AliRawEvent.h [moved from RAW/AliRawEvent.h with 100% similarity]
RAW/RAWDatabase/AliRawEventHeaderBase.cxx [moved from RAW/AliRawEventHeaderBase.cxx with 100% similarity]
RAW/RAWDatabase/AliRawEventHeaderBase.h [moved from RAW/AliRawEventHeaderBase.h with 100% similarity]
RAW/RAWDatabase/AliRawEventHeaderVersions.h [moved from RAW/AliRawEventHeaderVersions.h with 100% similarity]
RAW/RAWDatabase/AliRawEventTag.cxx [moved from RAW/AliRawEventTag.cxx with 100% similarity]
RAW/RAWDatabase/AliRawEventTag.h [moved from RAW/AliRawEventTag.h with 100% similarity]
RAW/RAWDatabase/AliRawEventV2.cxx [moved from RAW/AliRawEventV2.cxx with 100% similarity]
RAW/RAWDatabase/AliRawEventV2.h [moved from RAW/AliRawEventV2.h with 100% similarity]
RAW/RAWDatabase/AliRawVEquipment.cxx [moved from RAW/AliRawVEquipment.cxx with 100% similarity]
RAW/RAWDatabase/AliRawVEquipment.h [moved from RAW/AliRawVEquipment.h with 100% similarity]
RAW/RAWDatabase/AliRawVEvent.cxx [moved from RAW/AliRawVEvent.cxx with 100% similarity]
RAW/RAWDatabase/AliRawVEvent.h [moved from RAW/AliRawVEvent.h with 100% similarity]
RAW/RAWDatabase/AliStats.cxx [moved from RAW/AliStats.cxx with 100% similarity]
RAW/RAWDatabase/AliStats.h [moved from RAW/AliStats.h with 100% similarity]
RAW/RAWDatabase/CMakeLists.txt [new file with mode: 0644]
RAW/RAWDatabase/RAWDatabaseLinkDef.h [moved from RAW/RAWDatabaseLinkDef.h with 100% similarity]
RAW/RAWDatarec/AliAltroRawStream.cxx [moved from RAW/AliAltroRawStream.cxx with 100% similarity]
RAW/RAWDatarec/AliAltroRawStream.h [moved from RAW/AliAltroRawStream.h with 100% similarity]
RAW/RAWDatarec/AliAltroRawStreamV3.cxx [moved from RAW/AliAltroRawStreamV3.cxx with 100% similarity]
RAW/RAWDatarec/AliAltroRawStreamV3.h [moved from RAW/AliAltroRawStreamV3.h with 100% similarity]
RAW/RAWDatarec/AliCaloRawStream.cxx [moved from RAW/AliCaloRawStream.cxx with 100% similarity]
RAW/RAWDatarec/AliCaloRawStream.h [moved from RAW/AliCaloRawStream.h with 100% similarity]
RAW/RAWDatarec/AliCaloRawStreamV3.cxx [moved from RAW/AliCaloRawStreamV3.cxx with 100% similarity]
RAW/RAWDatarec/AliCaloRawStreamV3.h [moved from RAW/AliCaloRawStreamV3.h with 100% similarity]
RAW/RAWDatarec/AliFilter.cxx [moved from RAW/AliFilter.cxx with 100% similarity]
RAW/RAWDatarec/AliFilter.h [moved from RAW/AliFilter.h with 100% similarity]
RAW/RAWDatarec/AliRawHLTManager.cxx [moved from RAW/AliRawHLTManager.cxx with 100% similarity]
RAW/RAWDatarec/AliRawHLTManager.h [moved from RAW/AliRawHLTManager.h with 100% similarity]
RAW/RAWDatarec/AliRawReader.cxx [moved from RAW/AliRawReader.cxx with 100% similarity]
RAW/RAWDatarec/AliRawReader.h [moved from RAW/AliRawReader.h with 100% similarity]
RAW/RAWDatarec/AliRawReaderChain.cxx [moved from RAW/AliRawReaderChain.cxx with 100% similarity]
RAW/RAWDatarec/AliRawReaderChain.h [moved from RAW/AliRawReaderChain.h with 100% similarity]
RAW/RAWDatarec/AliRawReaderDate.cxx [moved from RAW/AliRawReaderDate.cxx with 100% similarity]
RAW/RAWDatarec/AliRawReaderDate.h [moved from RAW/AliRawReaderDate.h with 100% similarity]
RAW/RAWDatarec/AliRawReaderFile.cxx [moved from RAW/AliRawReaderFile.cxx with 100% similarity]
RAW/RAWDatarec/AliRawReaderFile.h [moved from RAW/AliRawReaderFile.h with 100% similarity]
RAW/RAWDatarec/AliRawReaderMemory.cxx [moved from RAW/AliRawReaderMemory.cxx with 100% similarity]
RAW/RAWDatarec/AliRawReaderMemory.h [moved from RAW/AliRawReaderMemory.h with 100% similarity]
RAW/RAWDatarec/AliRawReaderRoot.cxx [moved from RAW/AliRawReaderRoot.cxx with 100% similarity]
RAW/RAWDatarec/AliRawReaderRoot.h [moved from RAW/AliRawReaderRoot.h with 100% similarity]
RAW/RAWDatarec/AliVMERawStream.cxx [moved from RAW/AliVMERawStream.cxx with 100% similarity]
RAW/RAWDatarec/AliVMERawStream.h [moved from RAW/AliVMERawStream.h with 100% similarity]
RAW/RAWDatarec/CMakeLists.txt [new file with mode: 0644]
RAW/RAWDatarec/RAWDatarecLinkDef.h [moved from RAW/RAWDatarecLinkDef.h with 94% similarity]
RAW/RAWDatarecOnline/AliRawReaderDateOnline.cxx [moved from RAW/AliRawReaderDateOnline.cxx with 100% similarity]
RAW/RAWDatarecOnline/AliRawReaderDateOnline.h [moved from RAW/AliRawReaderDateOnline.h with 100% similarity]
RAW/RAWDatarecOnline/CMakeLists.txt [new file with mode: 0644]
RAW/RAWDatarecOnline/RAWDatarecOnlineLinkDef.h [moved from RAW/RAWDatarecOnlineLinkDef.h with 100% similarity]
RAW/RAWDatasim/AliAltroBuffer.cxx [moved from RAW/AliAltroBuffer.cxx with 100% similarity]
RAW/RAWDatasim/AliAltroBuffer.h [moved from RAW/AliAltroBuffer.h with 100% similarity]
RAW/RAWDatasim/AliAltroBufferV3.cxx [moved from RAW/AliAltroBufferV3.cxx with 100% similarity]
RAW/RAWDatasim/AliAltroBufferV3.h [moved from RAW/AliAltroBufferV3.h with 100% similarity]
RAW/RAWDatasim/AliBitPacking.cxx [moved from RAW/AliBitPacking.cxx with 100% similarity]
RAW/RAWDatasim/AliBitPacking.h [moved from RAW/AliBitPacking.h with 100% similarity]
RAW/RAWDatasim/CMakeLists.txt [new file with mode: 0644]
RAW/RAWDatasim/RAWDatasimLinkDef.h [moved from RAW/RAWDatasimLinkDef.h with 100% similarity]
RAW/alirawdump/CMakeLists.txt [new file with mode: 0644]
RAW/alirawdump/alirawdump_main.cxx [moved from RAW/alirawdump_main.cxx with 100% similarity]
RAW/almdc/CMakeLists.txt [new file with mode: 0644]
RAW/almdc/alimdc.spec.in [moved from RAW/alimdc.spec.in with 100% similarity]
RAW/almdc/alimdc_main.cxx [moved from RAW/alimdc_main.cxx with 100% similarity]
RAW/dateStream/CMakeLists.txt [new file with mode: 0644]
RAW/dateStream/dateStream.cxx [moved from RAW/dateStream.cxx with 100% similarity]
STAT/CMakeLists.txt
STEER/AOD/CMakeLists.txt
STEER/CDB/CMakeLists.txt
STEER/ESD/CMakeLists.txt
STEER/STEER/CMakeLists.txt
STEER/STEERBase/CMakeLists.txt
cmake/CMakeALICE.cmake
cmake/FindROOT.cmake

index 3837eb4..0c68801 100644 (file)
@@ -24,7 +24,7 @@ include_directories(${ROOT_INCLUDE_DIRS}
                     ${CMAKE_SOURCE_DIR}/STEER/STEERBase
                    )
 
-# Sources
+# Sources in alphabetical order
 set(SRCS
     AliAnalysisDataContainer.cxx
     AliAnalysisDataSlot.cxx
@@ -45,6 +45,12 @@ string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
 get_directory_property(incdirs INCLUDE_DIRECTORIES)
 generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
 
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS STEERBase)
+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)
 
index 477ae62..0ea2127 100644 (file)
@@ -87,6 +87,11 @@ string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
 get_directory_property(incdirs INCLUDE_DIRECTORIES)
 generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
 
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS ANALYSIS OADB AOD ESD STEERBase)
+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)
 
index 53501cd..0922b8e 100644 (file)
@@ -26,7 +26,7 @@ include_directories(${ROOT_INCLUDE_DIRS}
                     ${CMAKE_SOURCE_DIR}/STEER/STEERBase
                    )
 
-# Sources in slphabetical order
+# Sources in alphabetical order
 set(SRCS
     AliAnalysisTaskAddObject.cxx
     AliAnalysisTaskFilter.cxx
@@ -44,6 +44,12 @@ string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
 get_directory_property(incdirs INCLUDE_DIRECTORIES)
 generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
 
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS ANALYSIS ESD STEERBase)
+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)
 
index b3037dc..5c3d0ec 100644 (file)
@@ -43,6 +43,12 @@ string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
 get_directory_property(incdirs INCLUDE_DIRECTORIES)
 generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
 
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS ANALYSIS ANALYSISalice EMCAL OADB AOD ESD STEERBase)
+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)
 
index ed1ee9d..9a9ab87 100644 (file)
@@ -46,6 +46,11 @@ string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
 get_directory_property(incdirs INCLUDE_DIRECTORIES)
 generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
 
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS ANALYSIS ANALYSISalice AOD ESD STEERBase)
+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)
 
index aca1dfe..9fe9ea1 100644 (file)
@@ -42,6 +42,11 @@ string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
 get_directory_property(incdirs INCLUDE_DIRECTORIES)
 generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
 
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS ANALYSIS ANALYSISalice CDB ESD STEERBase)
+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)
 
index 72869de..8eca9d7 100644 (file)
@@ -79,6 +79,11 @@ string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
 get_directory_property(incdirs INCLUDE_DIRECTORIES)
 generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
 
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS ANALYSIS ANALYSISalice Tender EMCAL EMCALbase EMCALrec EMCALUtils CORRFW OADB PHOS PHOSbase PHOSrec PHOSUtils AOD CDB ESD STEER STEERBase T0 T0rec TOF TOFbase TOFrec TPC TPCBase TRD TRDCal TRDBase VZERO VZEROBase VZEROrec)
+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)
 
index 425d95f..3bb3d44 100644 (file)
@@ -41,6 +41,12 @@ string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
 get_directory_property(incdirs INCLUDE_DIRECTORIES)
 generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
 
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS STEERBase)
+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)
 
index cb3f333..2c9d7e0 100644 (file)
@@ -26,7 +26,9 @@
 # SHLIBS - Shared Libraries and objects for linking (Executables only)           #
 #--------------------------------------------------------------------------------#
 
-set ( SRCS   AliRawReaderDateOnline.cxx)
+set ( SRCS   
+AliRawReaderDateOnline.cxx
+)
 
 string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
 
similarity index 100%
rename from RAW/AliMDC.cxx
rename to RAW/MDC/AliMDC.cxx
similarity index 100%
rename from RAW/AliMDC.h
rename to RAW/MDC/AliMDC.h
similarity index 100%
rename from RAW/AliRawDB.cxx
rename to RAW/MDC/AliRawDB.cxx
similarity index 100%
rename from RAW/AliRawDB.h
rename to RAW/MDC/AliRawDB.h
similarity index 100%
rename from RAW/AliRawNullDB.h
rename to RAW/MDC/AliRawNullDB.h
similarity index 100%
rename from RAW/AliRawRFIODB.h
rename to RAW/MDC/AliRawRFIODB.h
similarity index 100%
rename from RAW/AliRawRootdDB.h
rename to RAW/MDC/AliRawRootdDB.h
similarity index 100%
rename from RAW/AliTagDB.cxx
rename to RAW/MDC/AliTagDB.cxx
similarity index 100%
rename from RAW/AliTagDB.h
rename to RAW/MDC/AliTagDB.h
similarity index 100%
rename from RAW/AliTagNullDB.h
rename to RAW/MDC/AliTagNullDB.h
diff --git a/RAW/MDC/CMakeLists.txt b/RAW/MDC/CMakeLists.txt
new file mode 100644 (file)
index 0000000..1a11f6b
--- /dev/null
@@ -0,0 +1,67 @@
+# **************************************************************************
+# * 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 MDC)
+
+# Module include folder
+include_directories(${CMAKE_SOURCE_DIR}/RAW/${MODULE})
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+                    ${CMAKE_SOURCE_DIR}/ITS
+                    ${CMAKE_SOURCE_DIR}/STEER/ESD
+                    ${CMAKE_SOURCE_DIR}/STEER/STEERBase
+                    ${CMAKE_SOURCE_DIR}/TPC
+                   )
+
+# Sources in alphabetical order
+set(SRCS
+    AliMDC.cxx
+    AliRawCastorDB.cxx
+    AliRawDB.cxx
+    AliRawNullDB.cxx
+    AliRawRFIODB.cxx
+    AliRawRootdDB.cxx
+    AliTagDB.cxx
+    AliTagNullDB.cxx
+    mdc.cxx
+   )
+
+# Headers from sources
+string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
+
+# 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}")
+
+# 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
similarity index 100%
rename from RAW/MDCLinkDef.h
rename to RAW/MDC/MDCLinkDef.h
similarity index 100%
rename from RAW/mdc.cxx
rename to RAW/MDC/mdc.cxx
similarity index 100%
rename from RAW/mdc.h
rename to RAW/MDC/mdc.h
similarity index 100%
rename from RAW/AliStats.h
rename to RAW/RAWDatabase/AliStats.h
diff --git a/RAW/RAWDatabase/CMakeLists.txt b/RAW/RAWDatabase/CMakeLists.txt
new file mode 100644 (file)
index 0000000..07ad987
--- /dev/null
@@ -0,0 +1,74 @@
+# **************************************************************************
+# * 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 RAWDatabase)
+
+# Module include folder
+include_directories(${CMAKE_SOURCE_DIR}/RAW/${MODULE})
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+                    ${CMAKE_SOURCE_DIR}/STEER/ESD
+                    ${CMAKE_SOURCE_DIR}/STEER/STEERBase
+                   )
+
+# Sources in alphabetical order
+set(SRCS
+    AliAltroMapping.cxx
+    AliCaloAltroMapping.cxx
+    AliRawDataArray.cxx
+    AliRawDataArrayV2.cxx
+    AliRawData.cxx
+    AliRawEquipment.cxx
+    AliRawEquipmentHeader.cxx
+    AliRawEquipmentV2.cxx
+    AliRawEvent.cxx
+    AliRawEventHeaderBase.cxx
+    AliRawEventTag.cxx
+    AliRawEventV2.cxx
+    AliRawVEquipment.cxx
+    AliRawVEvent.cxx
+    AliStats.cxx
+   )
+
+# Headers from sources
+string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
+
+# Extra headers in alphabetical order
+set(HDRS ${HDRS} AliRawEventHeaderVersions.h)
+
+# 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}")
+
+# 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
similarity index 100%
rename from RAW/AliFilter.h
rename to RAW/RAWDatarec/AliFilter.h
diff --git a/RAW/RAWDatarec/CMakeLists.txt b/RAW/RAWDatarec/CMakeLists.txt
new file mode 100644 (file)
index 0000000..fabf591
--- /dev/null
@@ -0,0 +1,68 @@
+# **************************************************************************
+# * 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 RAWDatarec)
+
+# Module include folder
+include_directories(${CMAKE_SOURCE_DIR}/RAW/${MODULE})
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+                    ${CMAKE_SOURCE_DIR}/HLT/rec
+                    ${CMAKE_SOURCE_DIR}/STEER/ESD
+                   )
+# Sources in alphabetical order
+set(SRCS
+    AliAltroRawStream.cxx
+    AliAltroRawStreamV3.cxx
+    AliCaloRawStream.cxx
+    AliCaloRawStreamV3.cxx
+    AliFilter.cxx
+    AliRawHLTManager.cxx
+    AliRawReaderChain.cxx
+    AliRawReader.cxx
+    AliRawReaderDate.cxx
+    AliRawReaderFile.cxx
+    AliRawReaderMemory.cxx
+    AliRawReaderRoot.cxx
+    AliVMERawStream.cxx
+   )
+
+# Headers from sources
+string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
+
+# 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}")
+
+# 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
similarity index 94%
rename from RAW/RAWDatarecLinkDef.h
rename to RAW/RAWDatarec/RAWDatarecLinkDef.h
index 91df13c..52a9204 100644 (file)
@@ -4,7 +4,7 @@
 #pragma link off all classes;
 #pragma link off all functions;
 
-#pragma link C++ class AliFilter;
+#pragma link C++ class AliFilter+;
 #pragma link C++ class AliRawReader+;
 #pragma link C++ class AliRawReaderFile+;
 #pragma link C++ class AliRawReaderRoot+;
diff --git a/RAW/RAWDatarecOnline/CMakeLists.txt b/RAW/RAWDatarecOnline/CMakeLists.txt
new file mode 100644 (file)
index 0000000..36b8708
--- /dev/null
@@ -0,0 +1,56 @@
+# **************************************************************************
+# * 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 RAWDatarecOnline)
+
+# Module include folder
+include_directories(${CMAKE_SOURCE_DIR}/RAW/${MODULE})
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+                    ${CMAKE_SOURCE_DIR}/STEER/ESD
+                   )
+
+# Sources in alphabetical order
+set(SRCS
+    AliRawReaderDateOnline.cxx
+   )
+
+# Headers from sources
+string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
+
+# 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}")
+
+# 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/RAW/RAWDatasim/CMakeLists.txt b/RAW/RAWDatasim/CMakeLists.txt
new file mode 100644 (file)
index 0000000..109489d
--- /dev/null
@@ -0,0 +1,58 @@
+# **************************************************************************
+# * 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 RAWDatasim)
+
+# Module include folder
+include_directories(${CMAKE_SOURCE_DIR}/RAW/${MODULE})
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+                    ${CMAKE_SOURCE_DIR}/STEER/STEER
+                   )
+
+# Sources in alphabetical order
+set(SRCS
+    AliAltroBuffer.cxx
+    AliAltroBufferV3.cxx
+    AliBitPacking.cxx
+   )
+
+# Headers from sources
+string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
+
+# 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}")
+
+# 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/RAW/alirawdump/CMakeLists.txt b/RAW/alirawdump/CMakeLists.txt
new file mode 100644 (file)
index 0000000..2902731
--- /dev/null
@@ -0,0 +1,36 @@
+# **************************************************************************
+# * 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 alirawdump)
+
+# Module include folder
+include_directories(${CMAKE_SOURCE_DIR}/RAW/${MODULE})
+
+# Module aditional include folders in alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+                    ${CMAKE_SOURCE_DIR}/RAW/RAWDatabase
+                    ${CMAKE_SOURCE_DIR}/RAW/RAWDatarec
+                    ${CMAKE_SOURCE_DIR}/STEER/STEERBase
+                   )
+
+set(ROOTEXTRALIBS "-L${ROOTLIBDIR} -lThread -lGeom -lVMC -lMinuit")
+
+# Add an executable to the project using the specified source files
+add_executable(${MODULE} alirawdump_main.cxx)
+target_link_libraries(${MODULE} STEERBase RAWDatabase ${ROOTEXTRALIBS} ${ROOTLIBS})
+
+# Installation
+install(TARGETS ${MODULE} RUNTIME DESTINATION bin)
\ No newline at end of file
diff --git a/RAW/almdc/CMakeLists.txt b/RAW/almdc/CMakeLists.txt
new file mode 100644 (file)
index 0000000..e6a925e
--- /dev/null
@@ -0,0 +1,20 @@
+cmake_minimum_required (VERSION 2.8)
+
+# Module
+set (MODULE alimdc)
+include_directories(${CMAKE_SOURCE_DIR}/${MODULE})
+include_directories( ${ROOTSYS}/include ${CMAKE_SOURCE_DIR}/STEER/STEERBase  ${CMAKE_SOURCE_DIR}/RAW/RAWDatabase ${CMAKE_SOURCE_DIR}/RAW/RAWDatarec)
+
+# Standard Root libraries
+execute_process(COMMAND root-config --libs OUTPUT_VARIABLE ROOTLIBS OUTPUT_STRIP_TRAILING_WHITESPACE)
+
+# Additional Root libraries
+execute_process(COMMAND root-config --libdir OUTPUT_VARIABLE ROOTLIBDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
+set(ROOTEXTRALIBS "-L${ROOTLIBDIR} -lThread -lGeom -lVMC -lMinuit")
+
+# Add an executable to the project using the specified source files
+add_executable(${MODULE} alimdc_main.cxx)
+target_link_libraries(${MODULE} STEERBase RAWDatabase ${ROOTEXTRALIBS} ${ROOTLIBS})
+
+# Installation
+install(TARGETS ${MODULE} RUNTIME DESTINATION bin)
similarity index 100%
rename from RAW/alimdc.spec.in
rename to RAW/almdc/alimdc.spec.in
diff --git a/RAW/dateStream/CMakeLists.txt b/RAW/dateStream/CMakeLists.txt
new file mode 100644 (file)
index 0000000..9780442
--- /dev/null
@@ -0,0 +1,20 @@
+cmake_minimum_required (VERSION 2.8)
+
+# Module
+set (MODULE dateStream)
+include_directories(${CMAKE_SOURCE_DIR}/${MODULE})
+include_directories( ${ROOTSYS}/include ${CMAKE_SOURCE_DIR}/STEER/STEERBase  ${CMAKE_SOURCE_DIR}/RAW/RAWDatabase ${CMAKE_SOURCE_DIR}/RAW/RAWDatarec)
+
+# Standard Root libraries
+execute_process(COMMAND root-config --libs OUTPUT_VARIABLE ROOTLIBS OUTPUT_STRIP_TRAILING_WHITESPACE)
+
+# Additional Root libraries
+execute_process(COMMAND root-config --libdir OUTPUT_VARIABLE ROOTLIBDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
+set(ROOTEXTRALIBS "-L${ROOTLIBDIR} -lThread -lGeom -lVMC -lMinuit")
+
+# Add an executable to the project using the specified source files
+add_executable(${MODULE} alimdc_main.cxx)
+target_link_libraries(${MODULE} STEERBase RAWDatabase ${ROOTEXTRALIBS} ${ROOTLIBS})
+
+# Installation
+install(TARGETS ${MODULE} RUNTIME DESTINATION bin)
index 7ba03b3..8b5c33f 100644 (file)
@@ -42,6 +42,11 @@ string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
 get_directory_property(incdirs INCLUDE_DIRECTORIES)
 generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
 
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS STEERBase)
+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)
 
index 5a026ba..5aa5203 100644 (file)
@@ -74,6 +74,11 @@ string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
 get_directory_property(incdirs INCLUDE_DIRECTORIES)
 generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
 
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS ESD STEERBase)
+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)
 
index fca760c..51c6447 100644 (file)
@@ -61,6 +61,12 @@ string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
 get_directory_property(incdirs INCLUDE_DIRECTORIES)
 generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
 
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS STEERBase)
+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)
 
index bac804e..59794bc 100644 (file)
@@ -108,6 +108,11 @@ string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
 get_directory_property(incdirs INCLUDE_DIRECTORIES)
 generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
 
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS STEERBase)
+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)
 
index 30bf104..7e3f5be 100644 (file)
@@ -162,6 +162,12 @@ string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
 get_directory_property(incdirs INCLUDE_DIRECTORIES)
 generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
 
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS ANALYSIS HLTsim RAWDatabase RAWDatarec CDB ESD)
+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)
 
index 9fcc30c..fa48836 100644 (file)
@@ -148,6 +148,11 @@ if(${CMAKE_SYSTEM} MATCHES Darwin)
     set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
 endif(${CMAKE_SYSTEM} MATCHES Darwin)
 
+# Generate the ROOT map
+# Dependecies
+#set(LIBDEPS OADB)
+generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
+
 # Installation
 install(TARGETS ${MODULE} 
   ARCHIVE DESTINATION lib
index e8d5d05..4750582 100644 (file)
@@ -25,7 +25,39 @@ macro(generate_dictionary DNAME LDNAME DHDRS DINCDIRS)
                        ARGS -f ${CMAKE_CURRENT_BINARY_DIR}/G__${DNAME}.cxx -c -p 
                        ${INCLUDE_PATH} 
                        ${DHDRS} ${LDNAME}
-                       DEPENDS ${DHDRS} ${LDNAME}
+                       DEPENDS ${DHDRS} ${LDNAME} ${ROOT_CINT}
                        WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
                       )
-endmacro(generate_dictionary)
\ No newline at end of file
+endmacro(generate_dictionary)
+
+# Generate the ROOTmap files
+# @LIBNAME - library name: libAnalysis.so -> Analysis.rootmap
+# @LIBDEPS - library dependencies
+# @LINKDEF - LinkDef header
+macro(generate_rootmap LIBNAME LIBDEPS LINKDEF)
+    message(STATUS "LIBNAME = ${LIBNAME}")
+    message(STATUS "LIBDEPS = ${LIBDEPS}")
+    message(STATUS "LINKDEF = ${LINKDEF}")
+    
+    message(STATUS "ROOT_LIBMAP=${ROOT_LIBMAP}")
+    
+    foreach(d ${LIBDEPS})
+        get_filename_component(_ext ${d} EXT)
+        if(_ext)
+            set(Int_DEPENDENCIES ${Int_DEPENDENCIES} ${d})
+        else()
+            set(Int_DEPENDENCIES ${Int_DEPENDENCIES} lib${d}.so)
+        endif()
+    endforeach()
+    
+    message(STATUS "Generating ROOT map for ${LIBNAME}")
+    add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lib${LIBNAME}.rootmap
+                       COMMAND LD_LIBRARY_PATH=${ROOT_LIBDIR}:$ENV{LD_LIBRARY_PATH} ${ROOT_LIBMAP}
+                       ARGS -o ${CMAKE_CURRENT_BINARY_DIR}/lib${LIBNAME}.rootmap -l lib${LIBNAME}.so -d ${Int_DEPENDENCIES} -c ${LINKDEF}
+                       DEPENDS ${LIBNAME}
+                       WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} VERBATIM
+                      )
+    add_custom_target(lib${LIBNAME}.rootmap ALL DEPENDS  ${CMAKE_CURRENT_BINARY_DIR}/lib${LIBNAME}.rootmap)
+    install(FILES ${CMAKE_CURRENT_BINARY_DIR}/lib${LIBNAME}.rootmap DESTINATION lib)
+    
+endmacro(generate_rootmap)
\ No newline at end of file
index 2fa32cd..b422181 100644 (file)
@@ -22,6 +22,7 @@
 # - ROOT_VERSION_PATCH
 # - ROOT_CONFIG - path to root-config script
 # - ROOT_CINT - path to rootcint executable
+# - ROOT_LIBMAP - path to rlibmap executable
 # - ROOT_FEATURES - list of build features for ROOT
 # - ROOT_LIBDIR - full path to ROOT library folder
 # - ROOT_LIBRARIES - libraries needed for the package to be used
@@ -47,6 +48,14 @@ if(ROOTSYS)
         message(FATAL_ERROR "Could not find root-config script.")
     endif(ROOT_CONFIG)
 
+    # Check for rlibmap
+    find_program(ROOT_LIBMAP NAMES rlibmap PATHS ${ROOTSYS}/bin NO_DEFAULT_PATH)
+    if(ROOT_LIBMAP)
+        message(STATUS "Found ${ROOT_LIBMAP}")
+    else()
+        message(FATAL_ERROR "Could not find rlibmap executable.")
+    endif(ROOT_LIBMAP)
+
     # Check for rootcint
     find_program(ROOT_CINT NAMES rootcint PATHS ${ROOTSYS}/bin NO_DEFAULT_PATH)
     if(ROOT_CINT)
@@ -81,6 +90,12 @@ if(ROOTSYS)
         message(FATAL_ERROR "Error retrieving ROOT libdir: ${error}")
     endif(error)
 
+    # Checking for ROOT libs
+    execute_process(COMMAND ${ROOT_CONFIG} --libs OUTPUT_VARIABLE ROOT_LIBRARIES ERROR_VARIABLE error OUTPUT_STRIP_TRAILING_WHITESPACE )
+    if(error)
+        message(FATAL_ERROR "Error retrieving ROOT libdir: ${error}")
+    endif(error)
+
     # Checking for ROOT incdir
     execute_process(COMMAND ${ROOT_CONFIG} --incdir OUTPUT_VARIABLE ROOT_INCDIR ERROR_VARIABLE error OUTPUT_STRIP_TRAILING_WHITESPACE )
     if(error)