Changes in CMakeLists.txt [9c2ce8b:5528bfe] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMakeLists.txt
r9c2ce8b r5528bfe 26 26 ENDIF(SET_RPATH) 27 27 28 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake") 29 28 30 # Declare ROOT dependency 29 31 find_package(ROOT COMPONENTS EG Eve Geom Gui GuiHtml GenVector Hist Physics Matrix Graf RIO Tree Gpad RGL MathCore) 30 32 include(${ROOT_USE_FILE}) 33 34 # Declare Pythia8 dependancy 35 find_package(Pythia8) 36 if(PYTHIA8_FOUND) 37 include_directories(${PYTHIA8_INCLUDE_DIRS}) 38 endif(PYTHIA8_FOUND) 31 39 32 40 if(NOT DEFINED CMAKE_INSTALL_LIBDIR) … … 41 49 endif() 42 50 endfunction() 51 52 43 53 44 54 # Declare position of all other externals needed … … 77 87 target_link_Libraries(Delphes ${ROOT_LIBRARIES} ${ROOT_COMPONENT_LIBRARIES}) 78 88 target_link_Libraries(DelphesDisplay ${ROOT_LIBRARIES} ${ROOT_COMPONENT_LIBRARIES}) 89 if(PYTHIA8_FOUND) 90 target_link_libraries(Delphes ${PYTHIA8_LIBRARIES} ${CMAKE_DL_LIBS}) 91 endif(PYTHIA8_FOUND) 92 79 93 80 94 install(TARGETS Delphes DelphesDisplay DESTINATION lib)
Note:
See TracChangeset
for help on using the changeset viewer.