Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add RED protocole for ns3.
[simgrid.git] / buildtools / Cmake / Modules / FindNS3.cmake
index fea2353..7b04300 100644 (file)
@@ -42,6 +42,20 @@ find_path(HAVE_CORE_MODULE_H
     ${ns3_path}
 )
 
+find_path(HAVE_RED_QUEUE_H
+       NAME ns3/red-queue.h
+    HINTS
+    $ENV{HOME}
+    PATH_SUFFIXES include ns3/include
+    PATHS
+    /opt
+    /opt/local
+    /opt/csw
+    /sw
+    /usr
+    ${ns3_path}
+)
+
 message(STATUS "Looking for core-module.h")
 if(HAVE_CORE_MODULE_H)
 message(STATUS "Looking for core-module.h - found")
@@ -50,6 +64,14 @@ message(STATUS "Looking for core-module.h - not found")
 endif(HAVE_CORE_MODULE_H)
 mark_as_advanced(HAVE_CORE_MODULE_H)
 
+message(STATUS "Looking for red-queue.h")
+if(HAVE_RED_QUEUE_H)
+message(STATUS "Looking for red-queue.h - found")
+else(HAVE_RED_QUEUE_H)
+message(STATUS "Looking for red-queue.h - not found")
+endif(HAVE_RED_QUEUE_H)
+mark_as_advanced(HAVE_RED_QUEUE_H)
+
 message(STATUS "Looking for lib ns3")
 if(HAVE_NS3_LIB)
 message(STATUS "Looking for lib ns3 - found")
@@ -65,6 +87,7 @@ else(HAVE_NS3_CORE_LIB)
 message(STATUS "Looking for lib ns3-core - not found")
 endif(HAVE_NS3_CORE_LIB)
 mark_as_advanced(HAVE_NS3_LIB)
+mark_as_advanced(HAVE_NS3_CORE_LIB)
 
 if(HAVE_CORE_MODULE_H)
     if(HAVE_NS3_LIB)
@@ -102,4 +125,8 @@ if(HAVE_NS3)
        endif(NOT operation)            
 else(HAVE_NS3)
     message(STATUS "Warning: To use NS-3 Please install ns3 at least version 3.10 (http://www.nsnam.org/releases/)")
-endif(HAVE_NS3)
\ No newline at end of file
+endif(HAVE_NS3)
+
+if(HAVE_NS3 AND enable_supernovae)
+    set(enable_supernovae OFF)
+endif(HAVE_NS3 AND enable_supernovae)
\ No newline at end of file