Fork me on GitHub

Changeset be6c1c8 in git


Ignore:
Timestamp:
Aug 23, 2014, 8:25:53 PM (10 years ago)
Author:
Pavel Demin <pavel.demin@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
5b5a56b
Parents:
9ca0c9c
Message:

adapt CMake files to ROOT 6

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r9ca0c9c rbe6c1c8  
    99find_package(ROOT COMPONENTS EG Eve GenVector Hist Physics Matrix Graf RIO Tree Gpad RGL MathCore)
    1010include(${ROOT_USE_FILE})
     11
     12if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
     13  set(CMAKE_INSTALL_LIBDIR "lib")
     14endif()
     15
     16function(DELPHES_GENERATE_DICTIONARY dictionary)
     17  if(${ROOT_VERSION} LESS 6.0)
     18    ROOT_GENERATE_DICTIONARY(${dictionary} ${ARGN})
     19  else()
     20    ROOT_GENERATE_DICTIONARY(${dictionary} MODULE ${dictionary} ${ARGN})
     21  endif()
     22endfunction()
    1123
    1224# Declare position of all other externals needed
  • classes/CMakeLists.txt

    r9ca0c9c rbe6c1c8  
    99list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/ClassesLinkDef.h)
    1010
    11 ROOT_GENERATE_DICTIONARY(ClassesDict
     11DELPHES_GENERATE_DICTIONARY(ClassesDict
    1212  ${CMAKE_CURRENT_SOURCE_DIR}/DelphesModule.h
    1313  ${CMAKE_CURRENT_SOURCE_DIR}/DelphesFactory.h
  • display/CMakeLists.txt

    r9ca0c9c rbe6c1c8  
    99list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/DisplayLinkDef.h)
    1010
    11 ROOT_GENERATE_DICTIONARY(DisplayDict ${headers} LINKDEF DisplayLinkDef.h)
     11DELPHES_GENERATE_DICTIONARY(DisplayDict ${headers} LINKDEF DisplayLinkDef.h)
    1212
    1313add_library(display OBJECT ${sources} DisplayDict.cxx)
  • external/ExRootAnalysis/CMakeLists.txt

    r9ca0c9c rbe6c1c8  
    88list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/ExRootAnalysisLinkDef.h)
    99
    10 ROOT_GENERATE_DICTIONARY(ExRootAnalysisDict ${headers} LINKDEF ExRootAnalysisLinkDef.h)
     10DELPHES_GENERATE_DICTIONARY(ExRootAnalysisDict ${headers} LINKDEF ExRootAnalysisLinkDef.h)
    1111
    1212add_library(ExRootAnalysis OBJECT ${sources} ExRootAnalysisDict.cxx)
  • modules/CMakeLists.txt

    r9ca0c9c rbe6c1c8  
    1010list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/Pythia8LinkDef.h)
    1111
    12 ROOT_GENERATE_DICTIONARY(ModulesDict ${headers} LINKDEF ModulesLinkDef.h)
     12DELPHES_GENERATE_DICTIONARY(ModulesDict ${headers} LINKDEF ModulesLinkDef.h)
    1313
    1414# TODO: implement switch to enable Pythia8 if present
  • readers/CMakeLists.txt

    r9ca0c9c rbe6c1c8  
    66file(GLOB executables RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
    77
    8 # TODO: implement switch to enable Pythia8 if present
    9 list(REMOVE_ITEM executables ${CMAKE_CURRENT_SOURCE_DIR}/DelphesPythia8.cpp)
     8# TODO: implement switch to enable CMSSW, ProMC and Pythia8 if present
     9list(REMOVE_ITEM executables DelphesCMSFWLite.cpp)
     10list(REMOVE_ITEM executables DelphesProMC.cpp)
     11list(REMOVE_ITEM executables DelphesPythia8.cpp)
    1012
    1113# build all executables and put them into bin/
Note: See TracChangeset for help on using the changeset viewer.