Warning, /JETSCAPE/cmakemodules/FindPythia6.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 PLUTO instalation
0009 # Once done this will define
0010 #
0011 # Pythia6_FOUND - system has Pythia6
0012 # Pythia6_LIBRARY_DIR - The libraries directory for Pythia6
0013 #
0014
0015 if (Pythia6_LIBRARY_DIR)
0016 SET (Pythia6_LIBRARY_DIR Pythia6_LIBRARY_DIR-NOTFOUND)
0017 endif (Pythia6_LIBRARY_DIR)
0018
0019 MESSAGE(STATUS "Looking for Pythia6...")
0020
0021 FIND_PATH(Pythia6_LIBRARY_DIR NAMES libPythia6.so PATHS
0022 ${Pythia6_DIR}/lib
0023 ${AlFa_DIR}/lib
0024 ${SIMPATH}/lib
0025 ${SIMPATH}/generators/lib
0026 NO_DEFAULT_PATH
0027 )
0028
0029 if (Pythia6_LIBRARY_DIR)
0030 set(Pythia6_FOUND TRUE)
0031 Set(PYTHIA6_LIBRARY_DIR ${Pythia6_LIBRARY_DIR})
0032 endif(Pythia6_LIBRARY_DIR)
0033
0034 if (Pythia6_FOUND)
0035 if (NOT Pythia6_FIND_QUIETLY)
0036 MESSAGE(STATUS "Looking for Pythia6... - found ${Pythia6_LIBRARY_DIR}")
0037 SET(LD_LIBRARY_PATH ${LD_LIBRARY_PATH} ${Pythia6_LIBRARY_DIR})
0038 endif (NOT Pythia6_FIND_QUIETLY)
0039 else (Pythia6_FOUND)
0040 if (Pythia6_FIND_REQUIRED)
0041 message(FATAL_ERROR "Looking for Pythia6... - Not found")
0042 endif (Pythia6_FIND_REQUIRED)
0043 endif (Pythia6_FOUND)
0044