# - Try to find PLUTO instalation # Once done this will define # # PLUTO_FOUND - system has GEANT3 # PLUTO_INCLUDE_DIR - the GEANT3 include directory # PLUTO_LIBRARIES - The libraries needed to use GEANT3 # PLUTO_DEFINITIONS - Compiler switches required for using GEANT3 # if (PLUTO_INCLUDE_DIR AND PLUTO_LIBRARIES) SET (PLUTO_INCLUDE_DIR PLUTO_INCLUDE_DIR-NOTFOUND) SET (PLUTO_LIB PLUTO_LIB-NOTFOUND) SET (PLUTO_DUMMY_LIB PLUTO_DUMMY_LIB-NOTFOUND) endif (PLUTO_INCLUDE_DIR AND PLUTO_LIBRARIES) FIND_PATH(PLUTO_INCLUDE_DIR NAMES PChannel.h PATHS /misc/cbmsoft/Debian3.1/generators/pluto/src /misc/cbmsoft/Debian3.1/generators/pluto ${ROOTSIM}/generators/pluto/src ${ROOTSIM}/generators/pluto NO_DEFAULT_PATH ) FIND_PATH(PLUTO_LIBRARY_DIR NAMES Pluto.so PATHS /misc/cbmsoft/Debian3.1/generators/pluto ${ROOTSIM}/generators/pluto ${ROOTSIM}/generators/lib NO_DEFAULT_PATH ) if (PLUTO_INCLUDE_DIR AND PLUTO_LIBRARY_DIR) set(PLUTO_FOUND TRUE) endif (PLUTO_INCLUDE_DIR AND PLUTO_LIBRARY_DIR) if (PLUTO_FOUND) if (NOT PLUTO_FIND_QUIETLY) message(STATUS "Found PLUTO: ${PLUTO_LIBRARY_DIR}") SET(LD_LIBRARY_PATH ${LD_LIBRARY_PATH} ${PLUTO_LIBRARY_DIR}) endif (NOT PLUTO_FIND_QUIETLY) else (PLUTO_FOUND) if (PLUTO_FIND_REQUIRED) message(FATAL_ERROR "Could NOT find PLUTO") endif (PLUTO_FIND_REQUIRED) endif (PLUTO_FOUND)