Fork me on GitHub

Changeset 3d19203 in git for modules


Ignore:
Timestamp:
May 25, 2018, 3:10:33 PM (6 years ago)
Author:
Pavel Demin <pavel-demin@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
9ef4235
Parents:
3874a9c
Message:

add PYTHIA8_FOUND to modules/CMakeLists.txt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/CMakeLists.txt

    r3874a9c 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)
    18 
    19 add_library(modules OBJECT ${sources} FastJetDict.cxx ModulesDict.cxx)
     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()
    2023
    2124# install headers
Note: See TracChangeset for help on using the changeset viewer.