Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/cmake/Modules/FindHepMC.cmake is written in an unsupported language. File is not indexed.

0001 # - Locate HepMC library
0002 # in a directory defined via  HEPMC_ROOT_DIR or HEPMC_DIR environment variable
0003 # Defines:
0004 #
0005 #  HEPMC_FOUND
0006 #  HEPMC_INCLUDE_DIR
0007 #  HEPMC_INCLUDE_DIRS (not cached)
0008 #  HEPMC_LIBRARIES
0009 #  HEPMC_FIO_LIBRARIES
0010 
0011 find_path(HEPMC_INCLUDE_DIR HepMC/GenEvent.h
0012           HINTS $ENV{HEPMC_ROOT_DIR}/include ${HEPMC_ROOT_DIR}/include
0013           $ENV{HEPMC_DIR}/include ${HEPMC_DIR}/include)
0014 
0015 find_library(HEPMC_LIBRARIES NAMES HepMC
0016              HINTS $ENV{HEPMC_ROOT_DIR}/lib ${HEPMC_ROOT_DIR}/lib
0017              HINTS $ENV{HEPMC_DIR}/lib ${HEPMC_DIR}/lib)
0018 
0019 get_filename_component(HEPMC_LIBRARY_DIR ${HEPMC_LIBRARIES} PATH)
0020 set(HEPMC_FIO_LIBRARIES "-L${HEPMC_LIBRARY_DIR} -lHepMCfio")
0021 
0022 set(HEPMC_INCLUDE_DIRS ${HEPMC_INCLUDE_DIR})
0023 
0024 # handle the QUIETLY and REQUIRED arguments and set HEPMC_FOUND to TRUE if
0025 # all listed variables are TRUE
0026 INCLUDE(FindPackageHandleStandardArgs)
0027 FIND_PACKAGE_HANDLE_STANDARD_ARGS(HepMC DEFAULT_MSG HEPMC_INCLUDE_DIR HEPMC_LIBRARIES)
0028 
0029 mark_as_advanced(HEPMC_FOUND HEPMC_INCLUDE_DIR HEPMC_LIBRARIES)