Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/CMakeLists.txt

    rf08ddc6 r3d19203  
    1414DELPHES_GENERATE_DICTIONARY(ModulesDict ${headers} LINKDEF ModulesLinkDef.h)
    1515
    16 # TODO: implement switch to enable Pythia8 if present
    17 list(REMOVE_ITEM sources ${CMAKE_CURRENT_SOURCE_DIR}/PileUpMergerPythia8.cc)
     16if(PYTHIA8_FOUND)
     17  DELPHES_GENERATE_DICTIONARY(Pythia8Dict ${headers} LINKDEF Pythia8LinkDef.h)
     18  add_library(modules OBJECT ${sources} FastJetDict.cxx ModulesDict.cxx Pythia8Dict.cxx)
     19else()
     20  list(REMOVE_ITEM sources ${CMAKE_CURRENT_SOURCE_DIR}/PileUpMergerPythia8.cc)
     21  add_library(modules OBJECT ${sources} FastJetDict.cxx ModulesDict.cxx)
     22endif()
    1823
    19 add_library(modules OBJECT ${sources} FastJetDict.cxx ModulesDict.cxx)
    20 
    21 # install public headers
    22 install(FILES Delphes.h
    23         DESTINATION include/modules
    24 )
     24# install headers
     25install(FILES ${headers} DESTINATION include/modules)
    2526
    2627# install pcms if they are created
Note: See TracChangeset for help on using the changeset viewer.