Back to home page

sPhenix code displayed by LXR

 
 

    


Warning, /JETSCAPE/cmakemodules/FindHEPMC.cmake is written in an unsupported language. File is not indexed.

0001  ################################################################################
0002  #    Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH    #
0003  #                                                                              #
0004  #              This software is distributed under the terms of the             # 
0005  #         GNU Lesser General Public Licence version 3 (LGPL) version 3,        #  
0006  #                  copied verbatim in the file "LICENSE"                       #
0007  ################################################################################
0008 # - Try to find HEPMC instalation
0009 # Once done this will define
0010 #
0011 
0012 
0013 
0014 MESSAGE(STATUS "Looking for HepMC ...")
0015 
0016 FIND_PATH(HEPMC_INCLUDE_DIR NAMES HepMC3/Version.h PATHS
0017   $ENV{HEPMC_DIR}/include
0018   /usr/local/lib/include/
0019   /usr/local/include/
0020   ${SIMPATH}/include/
0021   NO_DEFAULT_PATH
0022 )
0023 
0024 FIND_PATH(HEPMC_LIB_DIR  NAMES libHepMC3.dylib libHepMC3.so PATHS
0025   $ENV{HEPMC_DIR}/lib
0026   $ENV{HEPMC_DIR}/lib64
0027   /usr/local/lib
0028   /usr/local/lib/lib64
0029   ${SIMPATH}/lib
0030   NO_DEFAULT_PATH
0031 )
0032 
0033 if (HEPMC_INCLUDE_DIR AND HEPMC_LIB_DIR)
0034    set(HEPMC_FOUND TRUE)
0035 endif (HEPMC_INCLUDE_DIR AND HEPMC_LIB_DIR)
0036 
0037 if (HEPMC_FOUND)
0038   #if (NOT HEPMC_FOUND_QUIETLY)
0039     MESSAGE(STATUS "Looking for HepMC... - found ${HEPMC_LIB_DIR}")
0040     SET(LD_LIBRARY_PATH ${LD_LIBRARY_PATH} ${HEPMC_LIB_DIR})
0041   #endif (NOT HEPMC_FOUND_QUIETLY)
0042 else (HEPMC_FOUND)
0043 #if (HEPMC_FOUND_REQUIRED)
0044     message(STATUS "Looking for HepMC... - Not found")
0045 #  endif (HEPMC_FOUND_REQUIRED)
0046 endif (HEPMC_FOUND)
0047