From: agrigora Date: Thu, 9 Oct 2014 15:03:46 +0000 (+0200) Subject: Install macros X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=15b503ebe89c2447cc0123de3b265ddb9c871e67;p=u%2Fmrichter%2FAliRoot.git Install macros --- diff --git a/ITS/CMakeLists.txt b/ITS/CMakeLists.txt index 4c6bfdb593c..3e7501d1fbc 100644 --- a/ITS/CMakeLists.txt +++ b/ITS/CMakeLists.txt @@ -18,4 +18,14 @@ add_subdirectory(ITSrec) add_subdirectory(ITSsim) add_subdirectory(UPGRADE) +# Macros +# Macros +# Do not forget the ending / from macros/ +# The / will point to install the content of the folder to +# macros/ITS/UPGRADE Without the / it will create a new folder +# macros/ITS/UPGRADE/macros +install(DIRECTORY oldmacros/ DESTINATION macros/ITS/oldmacros) +install(DIRECTORY macrosSDD/ DESTINATION macros/ITS/macrosSDD) + + message(STATUS "ITS enabled") diff --git a/ITS/UPGRADE/CMakeLists.txt b/ITS/UPGRADE/CMakeLists.txt index 8004011e2b1..3c1f0148381 100644 --- a/ITS/UPGRADE/CMakeLists.txt +++ b/ITS/UPGRADE/CMakeLists.txt @@ -19,7 +19,10 @@ add_subdirectory(ITSUpgradeRec) add_subdirectory(ITSUpgradeSim) # Macros -add_subdirectory(macros) -add_subdirectory(macros/QA) +# Do not forget the ending / from macros/ +# The / will point to install the content of the folder to +# macros/ITS/UPGRADE Without the / it will create a new folder +# macros/ITS/UPGRADE/macros +install(DIRECTORY macros/ DESTINATION macros/ITS/UPGRADE) message(STATUS "ITS UPGRADE enabled") diff --git a/ITS/UPGRADE/macros/CMakeLists.txt b/ITS/UPGRADE/macros/CMakeLists.txt deleted file mode 100644 index cfc74b7047d..00000000000 --- a/ITS/UPGRADE/macros/CMakeLists.txt +++ /dev/null @@ -1,29 +0,0 @@ -# ************************************************************************** -# * 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. * -# ************************************************************************** - -# Macros in alphabetical order -set(MACRO_SRCS - Config_pileup.C - efficiency.C - FastVsSlowSim.C - PlotDoseExtrapolat.C - PlotOptimizeLenght.C - recGloCooked.C - ScanDigitsSuze02_v15.C - testTrackerCA.C - testTrackerCooked.C -) - -install(FILES ${MACRO_SRCS} DESTINATION macros/ITS/UPGRADE) \ No newline at end of file diff --git a/ITS/UPGRADE/macros/QA/CMakeLists.txt b/ITS/UPGRADE/macros/QA/CMakeLists.txt deleted file mode 100644 index 669fa486bbf..00000000000 --- a/ITS/UPGRADE/macros/QA/CMakeLists.txt +++ /dev/null @@ -1,29 +0,0 @@ -# ************************************************************************** -# * 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. * -# ************************************************************************** - -# Macros in alphabetical order -set(MACRO_SRCS - AliITSUComparison.C - AliITSUComparisonCooked.C - AliITSUComparisonPileup.C - AliTPCUComparison.C - CheckPileupVerticesMC.C - check_radii.C - CMakeLists.txt - compClusHits.C - plotHits.C -) - -install(FILES ${MACRO_SRCS} DESTINATION macros/ITS/UPGRADE/QA) \ No newline at end of file diff --git a/STAT/CMakeLists.txt b/STAT/CMakeLists.txt index 9514f93e80a..afc77bde20a 100644 --- a/STAT/CMakeLists.txt +++ b/STAT/CMakeLists.txt @@ -64,4 +64,11 @@ install(TARGETS ${MODULE} LIBRARY DESTINATION lib) install(FILES ${HDRS} DESTINATION include) +# Macros +# Do not forget the ending / from macros/ +# The / will point to install the content of the folder to +# macros/STAT Without the / it will create a new folder +# macros/STAT/Macros +install(DIRECTORY Macros/ DESTINATION macros/STAT) + message(STATUS "${MODULE} enabled") \ No newline at end of file diff --git a/STEER/CMakeLists.txt b/STEER/CMakeLists.txt index 042a5b53fc3..5b7335c0f1a 100644 --- a/STEER/CMakeLists.txt +++ b/STEER/CMakeLists.txt @@ -20,4 +20,11 @@ add_subdirectory (AOD) add_subdirectory (CDB) add_subdirectory (STEER) +# Macros +# Do not forget the ending / from macros/ +# The / will point to install the content of the folder to +# macros/STEER Without the / it will create a new folder +# macros/STEER/macros +install(DIRECTORY macros/ DESTINATION macros/STEER) + message(STATUS "STEER enabled") diff --git a/STEER/macros/CDB/CMakeLists.txt b/STEER/macros/CDB/CMakeLists.txt deleted file mode 100644 index 29a4694cf62..00000000000 --- a/STEER/macros/CDB/CMakeLists.txt +++ /dev/null @@ -1,79 +0,0 @@ -# ************************************************************************** -# * 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 CDB) - -# Module include folders -include_directories(${CMAKE_SOURCE_DIR}/STEER/${MODULE}) - -# Additional include directories -include_directories(${ROOTSYS}/include - ${CMAKE_SOURCE_DIR}/STEER/STEERBase - ${CMAKE_BINARY_DIR}/version/ - ) - - -# Sources - alphabetical order -set(SRCS - AliBaseCalibViewer.cxx - AliBaseCalibViewerGUI.cxx - AliCalibViewerGUItime.cxx - AliCDBDump.cxx - AliCDBEntry.cxx - AliCDBGrid.cxx - AliCDBHandler.cxx - AliCDBId.cxx - AliCDBLocal.cxx - AliCDBManager.cxx - AliCDBMetaData.cxx - AliCDBPath.cxx - AliCDBRunRange.cxx - AliCDBStorage.cxx - AliDCSGenDB.cxx - AliDCSSensorArray.cxx - AliDCSSensor.cxx - AliDCSValue.cxx - AliGRPDCS.cxx - AliOCDBtoolkit.cxx - AliPreprocessor.cxx - AliShuttleInterface.cxx - AliSplineFit.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)