Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a dependency for smpi.
[simgrid.git] / buildtools / Cmake / Modules / FindF2c.cmake
diff --git a/buildtools/Cmake/Modules/FindF2c.cmake b/buildtools/Cmake/Modules/FindF2c.cmake
new file mode 100644 (file)
index 0000000..75121eb
--- /dev/null
@@ -0,0 +1,39 @@
+find_path(HAVE_F2C_H f2c.h
+    HINTS
+    $ENV{LD_LIBRARY_PATH}
+    PATH_SUFFIXES include/
+    PATHS
+    /opt
+    /opt/local
+    /opt/csw
+    /sw
+    /usr
+)
+
+find_program(F2C_EXE 
+       NAME f2c
+    PATH_SUFFIXES bin/
+    PATHS
+    /opt
+    /opt/local
+    /opt/csw
+    /sw
+    /usr
+)
+
+find_library(HAVE_F2C_LIB
+    NAME f2c
+    HINTS
+    $ENV{LD_LIBRARY_PATH}
+    PATH_SUFFIXES lib/
+    PATHS
+    /opt
+    /opt/local
+    /opt/csw
+    /sw
+    /usr
+)
+
+mark_as_advanced(HAVE_F2C_H)
+mark_as_advanced(F2C_EXE)
+mark_as_advanced(HAVE_F2C_LIB)
\ No newline at end of file