Fork me on GitHub

Changeset 3283d6e in git


Ignore:
Timestamp:
Feb 5, 2018, 11:57:09 AM (7 years ago)
Author:
William Fawcett <william.fawcett@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
0a88f17
Parents:
8b8a46c
Message:

minor modification

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r8b8a46c r3283d6e  
    4141
    4242# WJF: Declare Pythia8 dependancy
    43 #include_directories($ENV{PYTHIA_INCLUDE_DIR})
    44 find_package(Pythia8)
    45 include_directories(${PYTHIA8_INCLUDE_DIRS})
    46 set(LIBS ${LIBS} ${PYTHIA8_LIBRARIES})
     43if(PYTHIA8_FOUND)
     44  find_package(Pythia8)
     45  include_directories(${PYTHIA8_INCLUDE_DIRS})
     46  set(LIBS ${LIBS} ${PYTHIA8_LIBRARIES})
     47endif(PYTHIA8_FOUND)
    4748
    48 # WJF test
    4949
    5050if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
     
    7373add_subdirectory(readers)
    7474add_subdirectory(cards)
     75add_subdirectory(analysis) # WJF: add for my analysis code
    7576
    7677add_library(Delphes SHARED
     
    9798target_link_Libraries(Delphes ${ROOT_LIBRARIES} ${ROOT_COMPONENT_LIBRARIES})
    9899target_link_Libraries(DelphesDisplay ${ROOT_LIBRARIES} ${ROOT_COMPONENT_LIBRARIES})
    99 target_link_libraries(Delphes ${LIBS})
     100if(PYTHIA8_FOUND)
     101  target_link_libraries(Delphes ${LIBS}) #WJF: add (needed for DelphesPythia8)
     102endif(PYTHIA8_FOUND)
    100103
    101104
  • cmake/Modules/FindPythia8.cmake

    r8b8a46c r3283d6e  
    1010
    1111set(_pythia8dirs
     12    ${PYTHIA8}
     13    $ENV{PYTHIA8}
    1214    ${PYTHIA8_DIR}
    1315    $ENV{PYTHIA8_DIR}
  • readers/CMakeLists.txt

    r8b8a46c r3283d6e  
    99list(REMOVE_ITEM executables DelphesCMSFWLite.cpp)
    1010list(REMOVE_ITEM executables DelphesProMC.cpp)
    11 #list(REMOVE_ITEM executables DelphesPythia8.cpp)
     11if(NOT PYTHIA8_FOUND)
     12  list(REMOVE_ITEM executables DelphesPythia8.cpp)
     13endif()
    1214
    1315# build all executables and put them into bin/
Note: See TracChangeset for help on using the changeset viewer.