Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • external/ExRootAnalysis/CMakeLists.txt

    r82cf9c4 r0feae05  
    66file(GLOB sources *.cc)
    77file(GLOB headers *.h)
     8
    89list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/ExRootAnalysisLinkDef.h)
    910
    10 DELPHES_GENERATE_DICTIONARY(ExRootAnalysisDict ${headers} LINKDEF ExRootAnalysisLinkDef.h)
     11# the macro invocation for ROOT6 ensures that the headers are relocatable
     12if (NOT ${ROOT_VERSION} VERSION_LESS "6.0.0")
     13  DELPHES_GENERATE_DICTIONARY(ExRootAnalysisDict
     14    ExRootAnalysis/ExRootClassifier.h
     15    ExRootAnalysis/ExRootConfReader.h
     16    ExRootAnalysis/ExRootFilter.h
     17    ExRootAnalysis/ExRootProgressBar.h
     18    ExRootAnalysis/ExRootResult.h
     19    ExRootAnalysis/ExRootTask.h
     20    ExRootAnalysis/ExRootTreeBranch.h
     21    ExRootAnalysis/ExRootTreeReader.h
     22    ExRootAnalysis/ExRootTreeWriter.h
     23    ExRootAnalysis/ExRootUtilities.h
     24    LINKDEF ExRootAnalysisLinkDef.h)
     25else()
     26  # for ROOT5 the above fails, keep the following as workaround
     27  DELPHES_GENERATE_DICTIONARY(ExRootAnalysisDict ${headers} LINKDEF ExRootAnalysisLinkDef.h)
     28endif()
    1129
    1230add_library(ExRootAnalysis OBJECT ${sources} ExRootAnalysisDict.cxx)
    1331
    14 # install headers needed by public Delphes headers to include/
    15 install(FILES ExRootTask.h ExRootConfReader.h ExRootTreeWriter.h ExRootTreeBranch.h
    16         DESTINATION include/ExRootAnalysis)
    17 
    18 # install all LinkDef files into the same folder to ease user environment
    19 install(FILES ExRootAnalysisLinkDef.h DESTINATION include)
     32# install headers
     33install(FILES ${headers} DESTINATION include/ExRootAnalysis)
    2034
    2135# install pcms if they are created
Note: See TracChangeset for help on using the changeset viewer.