Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
1754f6965c11878363c475b8976e297cf6449d94
[simgrid.git] / buildtools / Cmake / Modules / FindSimGrid.cmake
1 #IF YOU HAVE INSTALL SIMGRID IN A SPECIAL DIRECTORY
2 #YOU CAN SPECIFY SIMGRID_ROOT OR GRAS_ROOT
3
4 # TO CALL THIS FILE USE
5         #set(CMAKE_MODULE_PATH 
6         #${CMAKE_MODULE_PATH}
7         #${CMAKE_HOME_DIRECTORY}/buildtools/Cmake/Modules
8         #)
9
10 message("GRAS_ROOT      = $ENV{GRAS_ROOT}")
11 message("SIMGRID_ROOT   = $ENV{SIMGRID_ROOT}")
12 message("LD_LIBRARY_PATH        = $ENV{LD_LIBRARY_PATH}")
13
14 find_library(HAVE_SIMGRID_LIB
15     NAME simgrid
16     HINTS
17     $ENV{LD_LIBRARY_PATH}
18     $ENV{GRAS_ROOT}
19         $ENV{SIMGRID_ROOT}
20     PATH_SUFFIXES lib64 lib
21     PATHS
22     /opt
23     /opt/local
24     /opt/csw
25     /sw
26     /usr
27 )
28
29 find_path(HAVE_GRAS_H gras.h
30     HINTS
31     $ENV{GRAS_ROOT}
32         $ENV{SIMGRID_ROOT}
33     PATH_SUFFIXES include
34     PATHS
35     /opt
36     /opt/local
37     /opt/csw
38     /sw
39     /usr
40 )
41
42 find_program(HAVE_TESH
43         NAMES tesh
44         HINTS
45         $ENV{GRAS_ROOT}
46         $ENV{SIMGRID_ROOT}
47         PATH_SUFFIXES bin
48         PATHS
49         /opt
50         /opt/local
51         /opt/csw
52         /sw
53         /usr
54 )
55
56 find_program(HAVE_GRAS_STUB
57         NAMES gras_stub_generator
58         HINTS
59         $ENV{GRAS_ROOT}
60         $ENV{SIMGRID_ROOT}
61         PATH_SUFFIXES bin
62         PATHS
63         /opt
64         /opt/local
65         /opt/csw
66         /sw
67         /usr
68 )
69
70 message("HAVE_SIMGRID_LIB       = ${HAVE_SIMGRID_LIB}")
71 message("HAVE_GRAS_H            = ${HAVE_GRAS_H}")
72 message("HAVE_TESH              = ${HAVE_TESH}")
73 message("HAVE_GRAS_STUB                 = ${HAVE_GRAS_STUB}")