1 # - Try to find PLUTO instalation
2 # Once done this will define
4 # PLUTO_FOUND - system has GEANT3
5 # PLUTO_INCLUDE_DIR - the GEANT3 include directory
6 # PLUTO_LIBRARIES - The libraries needed to use GEANT3
7 # PLUTO_DEFINITIONS - Compiler switches required for using GEANT3
10 if (PLUTO_INCLUDE_DIR AND PLUTO_LIBRARIES)
11 SET (PLUTO_INCLUDE_DIR PLUTO_INCLUDE_DIR-NOTFOUND)
12 SET (PLUTO_LIB PLUTO_LIB-NOTFOUND)
13 SET (PLUTO_DUMMY_LIB PLUTO_DUMMY_LIB-NOTFOUND)
14 endif (PLUTO_INCLUDE_DIR AND PLUTO_LIBRARIES)
16 MESSAGE(STATUS "Looking for Pluto...")
18 FIND_PATH(PLUTO_INCLUDE_DIR NAMES PChannel.h PATHS
19 ${SIMPATH}/generators/pluto/src
20 ${SIMPATH}/generators/pluto
21 ${SIMPATH}/generators/pluto/include
25 FIND_PATH(PLUTO_LIBRARY_DIR NAMES libPluto.so PATHS
26 ${SIMPATH}/generators/lib
27 ${SIMPATH}/generators/pluto
31 if (PLUTO_INCLUDE_DIR AND PLUTO_LIBRARY_DIR)
33 endif (PLUTO_INCLUDE_DIR AND PLUTO_LIBRARY_DIR)
36 if (NOT PLUTO_FIND_QUIETLY)
37 MESSAGE(STATUS "Looking for Pluto... - found ${PLUTO_LIBRARY_DIR}")
38 # message(STATUS "Found PLUTO: ${PLUTO_LIBRARY_DIR}")
39 SET(LD_LIBRARY_PATH ${LD_LIBRARY_PATH} ${PLUTO_LIBRARY_DIR})
40 endif (NOT PLUTO_FIND_QUIETLY)
42 if (PLUTO_FIND_REQUIRED)
43 message(FATAL_ERROR "Looking for Pluto... - Not found")
44 endif (PLUTO_FIND_REQUIRED)