Fork me on GitHub

Changeset 90187bd in git


Ignore:
Timestamp:
May 18, 2018, 8:33:39 PM (7 years ago)
Author:
GitHub <noreply@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
b315535
Parents:
73bc3ca (diff), 4ed4118 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Pavel Demin <pavel-demin@…> (05/18/18 20:33:39)
git-committer:
GitHub <noreply@…> (05/18/18 20:33:39)
Message:

Merge pull request #47 from will-fawcett/cmake-pythia8

Add pythia8 dependancy to CMake

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r73bc3ca r90187bd  
    2626ENDIF(SET_RPATH)
    2727   
     28set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
     29
    2830# Declare ROOT dependency
    2931find_package(ROOT COMPONENTS EG Eve Geom Gui GuiHtml GenVector Hist Physics Matrix Graf RIO Tree Gpad RGL MathCore)
    3032include(${ROOT_USE_FILE})
     33
     34
     35# Declare Pythia8 dependancy
     36find_package(Pythia8)
     37if(PYTHIA8_FOUND)
     38  message(STATUS "Pythia8 found")
     39  include_directories(${PYTHIA8_INCLUDE_DIRS})
     40  set(LIBS ${LIBS} ${PYTHIA8_LIBRARIES})
     41endif(PYTHIA8_FOUND)
     42
    3143
    3244if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
     
    4153  endif()
    4254endfunction()
     55
     56
    4357
    4458# Declare position of all other externals needed
     
    7791target_link_Libraries(Delphes ${ROOT_LIBRARIES} ${ROOT_COMPONENT_LIBRARIES})
    7892target_link_Libraries(DelphesDisplay ${ROOT_LIBRARIES} ${ROOT_COMPONENT_LIBRARIES})
     93if(PYTHIA8_FOUND)
     94  target_link_libraries(Delphes ${LIBS}) # needed for DelphesPythia8
     95endif(PYTHIA8_FOUND)
     96
    7997
    8098install(TARGETS Delphes DelphesDisplay DESTINATION lib)
  • readers/CMakeLists.txt

    r73bc3ca r90187bd  
    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.