Cooverting some HLT executables to native cmake
authorhristov <Peter.Hristov@cern.ch>
Wed, 19 Nov 2014 15:32:24 +0000 (16:32 +0100)
committeragrigora <alina.grigoras@cern.ch>
Mon, 15 Dec 2014 12:51:58 +0000 (13:51 +0100)
HLT/BASE/CMakeLists.txt
HLT/BASE/util/CMakeLists.txt
HLT/CMakebindHLTdumpraw.pkg [deleted file]
HLT/CMakebindHLTrootify.pkg [deleted file]
HLT/CMakebinhltdimserver.pkg [deleted file]
HLT/MUON/CMakeLists.txt

index 2e0d027..958ee66 100644 (file)
@@ -148,4 +148,4 @@ install(TARGETS ${MODULE}
         ARCHIVE DESTINATION lib
         LIBRARY DESTINATION lib)
 
-install(FILES ${HDRS} DESTINATION include)
\ No newline at end of file
+install(FILES ${HDRS} DESTINATION include)
index 147e38f..539929b 100644 (file)
@@ -93,4 +93,21 @@ install(TARGETS ${MODULE}
         ARCHIVE DESTINATION lib
         LIBRARY DESTINATION lib)
 
-install(FILES ${HDRS} DESTINATION include)
\ No newline at end of file
+ install(FILES ${HDRS} DESTINATION include)
+
+ # dHLTdumpraw executable
+# Additional include folders in alphabetical order except ROOT
+include_directories(
+                    ${AliRoot_SOURCE_DIR}/HLT/BASE/HOMER
+                   )
+
+set(SRCS
+    hltdimserver.cxx
+   )
+
+add_executable(hltdimserver ${SRCS})
+target_link_libraries(hltdimserver HLTbase AliHLTHOMER Hist Core)
+
+# Installation of hltdimserver
+install(TARGETS hltdimserver RUNTIME DESTINATION bin)
diff --git a/HLT/CMakebindHLTdumpraw.pkg b/HLT/CMakebindHLTdumpraw.pkg
deleted file mode 100644 (file)
index b08c221..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-# $Id$
-#--------------------------------------------------------------------------------#
-# Package File for dHLTdumpraw                                                   #
-# Author : Johny Jose (johny.jose@cern.ch)                                       #
-# Variables Defined :                                                            #
-#                                                                                #
-# SRCS - C++ source files                                                        #
-# HDRS - C++ header files                                                        #
-# DHDR - ROOT Dictionary Linkdef header file                                     #
-# CSRCS - C source files                                                         #
-# CHDRS - C header files                                                         #
-# EINCLUDE - Include directories                                                 #
-# EDEFINE - Compiler definitions                                                 #
-# ELIBS - Extra libraries to link                                                #
-# ELIBSDIR - Extra library directories                                           #
-# PACKFFLAGS - Fortran compiler flags for package                                #
-# PACKCXXFLAGS - C++ compiler flags for package                                  #
-# PACKCFLAGS - C compiler flags for package                                      #
-# PACKSOFLAGS - Shared library linking flags                                     #
-# PACKLDFLAGS - Module linker flags                                              #
-# PACKBLIBS - Libraries to link (Executables only)                               #
-# EXPORT - Header files to be exported                                           #
-# CINTHDRS - Dictionary header files                                             #
-# CINTAUTOLINK - Set automatic dictionary generation                             #
-# ARLIBS - Archive Libraries and objects for linking (Executables only)          #
-# SHLIBS - Shared Libraries and objects for linking (Executables only)           #
-#--------------------------------------------------------------------------------#
-
-set ( SRCS  MUON/utils/dHLTdumpraw.cxx)
-
-set ( EINCLUDE  HLT/BASE HLT/MUON MUON RAW)
-
-set ( PACKBLIBS  ${ROOTCLIBS} ${SYSLIBS})
-
-set ( ELIBS  AliHLTMUON HLTbase MUONmapping MUONevaluation MUONsim MUONrec MUONgeometry MUONcalib MUONbase MUONraw RAWDatasim MUONtrigger MUONcore STEER CDB AOD RAWDatarec ESD RAWDatabase STEERBase ANALYSIS) 
-  
-include ("CMakehlt.conf")
-
-set ( EDEFINE  ${HLTDEFS})
-
-set ( PACKCXXFLAGS  ${HLTCXXFLAGS})
-
-set ( PACKCFLAGS  ${HLTCLFAGS})
diff --git a/HLT/CMakebindHLTrootify.pkg b/HLT/CMakebindHLTrootify.pkg
deleted file mode 100644 (file)
index 2d080a4..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-# $Id$
-#--------------------------------------------------------------------------------#
-# Package File for dHLTrootify                                                   #
-# Author : Johny Jose (johny.jose@cern.ch)                                       #
-# Variables Defined :                                                            #
-#                                                                                #
-# SRCS - C++ source files                                                        #
-# HDRS - C++ header files                                                        #
-# DHDR - ROOT Dictionary Linkdef header file                                     #
-# CSRCS - C source files                                                         #
-# CHDRS - C header files                                                         #
-# EINCLUDE - Include directories                                                 #
-# EDEFINE - Compiler definitions                                                 #
-# ELIBS - Extra libraries to link                                                #
-# ELIBSDIR - Extra library directories                                           #
-# PACKFFLAGS - Fortran compiler flags for package                                #
-# PACKCXXFLAGS - C++ compiler flags for package                                  #
-# PACKCFLAGS - C compiler flags for package                                      #
-# PACKSOFLAGS - Shared library linking flags                                     #
-# PACKLDFLAGS - Module linker flags                                              #
-# PACKBLIBS - Libraries to link (Executables only)                               #
-# EXPORT - Header files to be exported                                           #
-# CINTHDRS - Dictionary header files                                             #
-# CINTAUTOLINK - Set automatic dictionary generation                             #
-# ARLIBS - Archive Libraries and objects for linking (Executables only)          #
-# SHLIBS - Shared Libraries and objects for linking (Executables only)           #
-#--------------------------------------------------------------------------------#
-
-set ( SRCS  MUON/utils/dHLTrootify.cxx)
-
-set ( EINCLUDE  HLT/BASE HLT/MUON MUON)
-
-set ( PACKBLIBS  ${ROOTCLIBS} ${SYSLIBS})
-
-set ( ELIBS  AliHLTMUON HLTbase MUONmapping MUONevaluation MUONsim MUONrec MUONgeometry MUONcalib MUONbase MUONraw RAWDatasim MUONtrigger MUONcore STEER CDB AOD RAWDatarec ESD RAWDatabase STEERBase ANALYSIS)
-
-include ("CMakehlt.conf")
-
-set ( EDEFINE  ${HLTDEFS})
-set ( PACKCXXFLAGS  ${HLTCXXFLAGS})
-set ( PACKCFLAGS  ${HLTCLFAGS})
-set ( PACKDCXXFLAGS ${HLTDCXXFLAGS})
-
diff --git a/HLT/CMakebinhltdimserver.pkg b/HLT/CMakebinhltdimserver.pkg
deleted file mode 100644 (file)
index ced8387..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-# $Id: $
-#--------------------------------------------------------------------------------#
-# Package File for hltdimserver                                                  #
-# Author : Artur Szostak (artursz@iafrica.com)                                   #
-# Variables Defined :                                                            #
-#                                                                                #
-# SRCS - C++ source files                                                        #
-# HDRS - C++ header files                                                        #
-# DHDR - ROOT Dictionary Linkdef header file                                     #
-# CSRCS - C source files                                                         #
-# CHDRS - C header files                                                         #
-# EINCLUDE - Include directories                                                 #
-# EDEFINE - Compiler definitions                                                 #
-# ELIBS - Extra libraries to link                                                #
-# ELIBSDIR - Extra library directories                                           #
-# PACKFFLAGS - Fortran compiler flags for package                                #
-# PACKCXXFLAGS - C++ compiler flags for package                                  #
-# PACKCFLAGS - C compiler flags for package                                      #
-# PACKSOFLAGS - Shared library linking flags                                     #
-# PACKLDFLAGS - Module linker flags                                              #
-# PACKBLIBS - Libraries to link (Executables only)                               #
-# EXPORT - Header files to be exported                                           #
-# CINTHDRS - Dictionary header files                                             #
-# CINTAUTOLINK - Set automatic dictionary generation                             #
-# ARLIBS - Archive Libraries and objects for linking (Executables only)          #
-# SHLIBS - Shared Libraries and objects for linking (Executables only)           #
-#--------------------------------------------------------------------------------#
-
-set ( SRCS  BASE/util/hltdimserver.cxx)
-
-set ( EINCLUDE  HLT/BASE HLT/HOMER)
-
-set ( PACKBLIBS  ${ROOTCLIBS} ${SYSLIBS})
-
-set ( ELIBS  HLTbase AliHLTHOMER) 
-  
-include ("CMakehlt.conf")
-
-set ( EDEFINE  ${HLTDEFS})
-
-set ( PACKCXXFLAGS  ${HLTCXXFLAGS})
-
-set ( PACKCFLAGS  ${HLTCLFAGS})
index ff9b87a..9c8213e 100644 (file)
@@ -126,4 +126,8 @@ install(TARGETS ${MODULE}
         ARCHIVE DESTINATION lib
         LIBRARY DESTINATION lib)
 
-install(FILES ${HDRS} DESTINATION include)
\ No newline at end of file
+install(FILES ${HDRS} DESTINATION include)
+
+# Compilation of some executables
+add_subdirectory(utils)
+