Fork me on GitHub

Changeset 9cd3a4d in git for CMakeLists.txt


Ignore:
Timestamp:
Feb 23, 2017, 11:48:07 AM (8 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
8a4fba8
Parents:
abcacdb (diff), 9a3d132 (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' of github.com:delphes/delphes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    rabcacdb r9cd3a4d  
    66set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
    77
     8# Set the runtime path of the libraries by default but allow to switch it off:
     9option(SET_RPATH "Set runtime path of the ${project} libraries?" ON)
     10IF(SET_RPATH)
     11  # Set up the RPATH so executables find the libraries even when installed in non-default location
     12  SET(CMAKE_MACOSX_RPATH 1)
     13  SET(CMAKE_SKIP_BUILD_RPATH  FALSE)
     14  SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
     15  SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
     16
     17  # Add the automatically determined parts of the RPATH which point to directories outside
     18  # the build tree to the install RPATH
     19  SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
     20
     21  # the RPATH to be used when installing, but only if it's not a system directory
     22  LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib" isSystemDir)
     23  IF(${isSystemDir} EQUAL -1)
     24    SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
     25  ENDIF(${isSystemDir} EQUAL -1)
     26ENDIF(SET_RPATH)
     27   
    828# Declare ROOT dependency
    929find_package(ROOT COMPONENTS EG Eve Geom Gui GuiHtml GenVector Hist Physics Matrix Graf RIO Tree Gpad RGL MathCore)
     
    3656add_library(Delphes SHARED
    3757  $<TARGET_OBJECTS:classes>
    38   $<TARGET_OBJECTS:display>
    3958  $<TARGET_OBJECTS:modules>
    4059  $<TARGET_OBJECTS:ExRootAnalysis>
     
    4564)
    4665
     66add_library(DelphesDisplay SHARED
     67  $<TARGET_OBJECTS:classes>
     68  $<TARGET_OBJECTS:display>
     69  $<TARGET_OBJECTS:modules>
     70  $<TARGET_OBJECTS:ExRootAnalysis>
     71  $<TARGET_OBJECTS:fastjet>
     72  $<TARGET_OBJECTS:tcl>
     73  $<TARGET_OBJECTS:Hector>
     74  $<TARGET_OBJECTS:PUPPI>
     75)
     76
    4777target_link_Libraries(Delphes ${ROOT_LIBRARIES} ${ROOT_COMPONENT_LIBRARIES})
     78target_link_Libraries(DelphesDisplay ${ROOT_LIBRARIES} ${ROOT_COMPONENT_LIBRARIES})
    4879
    49 install(TARGETS Delphes DESTINATION lib)
     80install(TARGETS Delphes DelphesDisplay DESTINATION lib)
Note: See TracChangeset for help on using the changeset viewer.