Fork me on GitHub

Changeset fbad4c7 in git for CMakeLists.txt


Ignore:
Timestamp:
May 24, 2018, 9:12:31 PM (6 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
4689481
Parents:
4fd4f01 (diff), 792092a (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.
Message:

Merge branch 'master' into photonId

Conflicts:

cards/CMS_PhaseII/CMS_PhaseII_200PU_v03.tcl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r4fd4f01 rfbad4c7  
    2626ENDIF(SET_RPATH)
    2727   
     28set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
     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# Declare Pythia8 dependancy
     35find_package(Pythia8)
     36if(PYTHIA8_FOUND)
     37  include_directories(${PYTHIA8_INCLUDE_DIRS})
     38endif(PYTHIA8_FOUND)
    3139
    3240if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
     
    4149  endif()
    4250endfunction()
     51
     52
    4353
    4454# Declare position of all other externals needed
     
    7787target_link_Libraries(Delphes ${ROOT_LIBRARIES} ${ROOT_COMPONENT_LIBRARIES})
    7888target_link_Libraries(DelphesDisplay ${ROOT_LIBRARIES} ${ROOT_COMPONENT_LIBRARIES})
     89if(PYTHIA8_FOUND)
     90  target_link_libraries(Delphes ${PYTHIA8_LIBRARIES} ${CMAKE_DL_LIBS})
     91endif(PYTHIA8_FOUND)
     92
    7993
    8094install(TARGETS Delphes DelphesDisplay DESTINATION lib)
Note: See TracChangeset for help on using the changeset viewer.