Warning, /estarlight/utils/cmake_modules/FindLHAPDF.cmake is written in an unsupported language. File is not indexed.
0001 #Will look for LHAPDF libraries in /usr/lib/ or /usr/local/lib/. If LHAPDF is not found, then look for dummy lhapdf in pythia8.
0002
0003 FIND_PATH(LHAPDF_INCLUDE_DIR Pythia.h /usr/include/ /usr/local/include/ $ENV{PYTHIADIR}/include)
0004
0005 FIND_LIBRARY(LHAPDF_LIBRARIES NAMES lhapdfdummy PATHS /usr/lib /usr/local/lib $ENV{PYTHIADIR}/lib/archive/)
0006
0007 IF (LHAPDF_INCLUDE_DIR AND LHAPDF_LIBRARIES)
0008 SET(LHAPDF_FOUND TRUE)
0009 ENDIF (LHAPDF_INCLUDE_DIR AND LHAPDF_LIBRARIES)
0010
0011 IF (LHAPDF_FOUND)
0012 IF (NOT Pythia8_FIND_QUIETLY)
0013 MESSAGE(STATUS "Found LHAPDF: ${LHAPDF_LIBRARIES}")
0014 ENDIF (NOT Pythia8_FIND_QUIETLY)
0015 ELSE (LHAPDF_FOUND)
0016 IF (Pythia8_FIND_REQUIRED)
0017 MESSAGE(FATAL_ERROR "Could not find LHAPDF")
0018 ENDIF (Pythia8_FIND_REQUIRED)
0019 ENDIF (LHAPDF_FOUND)
0020