Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Check if the fields were found in Task.nativeInit and Comm.nativeInit
[simgrid.git] / FindSimGrid.cmake
index 168c9c9..a77a88d 100644 (file)
@@ -14,6 +14,13 @@ find_path(SIMGRID_INCLUDES msg/msg.h
     PATH_SUFFIXES include
 )
 
+find_program(TESH_BIN_PATH
+       NAMES tesh
+       HINTS
+       $ENV{SIMGRID_ROOT}
+       PATH_SUFFIXES bin
+)
+
 message(STATUS "Looking for lib SimGrid")
 if(SIMGRID_LIB)
   message(STATUS "Looking for lib SimGrid - found")  
@@ -44,4 +51,8 @@ endif(SIMGRID_INCLUDES)
 if(SIMGRID_LIB AND SIMGRID_INCLUDES)
 else(SIMGRID_LIB AND SIMGRID_INCLUDES)
     message(FATAL_ERROR "Unable to find both the library and the include files. Setting the environment variable SIMGRID_ROOT may help.")
-endif(SIMGRID_LIB AND SIMGRID_INCLUDES)
\ No newline at end of file
+endif(SIMGRID_LIB AND SIMGRID_INCLUDES)
+
+if(TESH_BIN_PATH)
+message(STATUS "Found Tesh: ${TESH_BIN_PATH}")
+endif(TESH_BIN_PATH)
\ No newline at end of file