]> git.uio.no Git - u/mrichter/AliRoot.git/blame - cmake/modules/FindPLUTO.cmake
Update: removed request of 4 points in ITS (Renu)
[u/mrichter/AliRoot.git] / cmake / modules / FindPLUTO.cmake
CommitLineData
e969a926 1# - Try to find PLUTO instalation
2# Once done this will define
3#
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
8#
9
10if (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)
14endif (PLUTO_INCLUDE_DIR AND PLUTO_LIBRARIES)
15
16MESSAGE(STATUS "Looking for Pluto...")
17
18FIND_PATH(PLUTO_INCLUDE_DIR NAMES PChannel.h PATHS
19 ${SIMPATH}/generators/pluto/src
20 ${SIMPATH}/generators/pluto
21 ${SIMPATH}/generators/pluto/include
22 NO_DEFAULT_PATH
23)
24
25FIND_PATH(PLUTO_LIBRARY_DIR NAMES libPluto.so PATHS
26 ${SIMPATH}/generators/lib
27 ${SIMPATH}/generators/pluto
28 NO_DEFAULT_PATH
29)
30
31if (PLUTO_INCLUDE_DIR AND PLUTO_LIBRARY_DIR)
32 set(PLUTO_FOUND TRUE)
33endif (PLUTO_INCLUDE_DIR AND PLUTO_LIBRARY_DIR)
34
35if (PLUTO_FOUND)
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)
41else (PLUTO_FOUND)
42 if (PLUTO_FIND_REQUIRED)
43 message(FATAL_ERROR "Looking for Pluto... - Not found")
44 endif (PLUTO_FIND_REQUIRED)
45endif (PLUTO_FOUND)
46