Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • external/ExRootAnalysis/CMakeLists.txt

    r0feae05 r82cf9c4  
    66file(GLOB sources *.cc)
    77file(GLOB headers *.h)
    8 
    98list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/ExRootAnalysisLinkDef.h)
    109
    11 # the macro invocation for ROOT6 ensures that the headers are relocatable
    12 if (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)
    25 else()
    26   # for ROOT5 the above fails, keep the following as workaround
    27   DELPHES_GENERATE_DICTIONARY(ExRootAnalysisDict ${headers} LINKDEF ExRootAnalysisLinkDef.h)
    28 endif()
     10DELPHES_GENERATE_DICTIONARY(ExRootAnalysisDict ${headers} LINKDEF ExRootAnalysisLinkDef.h)
    2911
    3012add_library(ExRootAnalysis OBJECT ${sources} ExRootAnalysisDict.cxx)
    3113
    32 # install headers
    33 install(FILES ${headers} DESTINATION include/ExRootAnalysis)
     14# install headers needed by public Delphes headers to include/
     15install(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
     19install(FILES ExRootAnalysisLinkDef.h DESTINATION include)
    3420
    3521# install pcms if they are created
Note: See TracChangeset for help on using the changeset viewer.