-if(HAVE_NS3 AND enable_supernovae)
- set(enable_supernovae OFF)
-endif(HAVE_NS3 AND enable_supernovae)
+ if (NOT NS3_LIBRARY_PATH STREQUAL "/usr/lib")
+ string(REGEX MATCH "${NS3_LIBRARY_PATH}" MatchResult "$ENV{LD_LIBRARY_PATH}")
+ if(NOT MatchResult)
+ message(STATUS "Warning: NS3 not installed in system path, and not listed in LD_LIBRARY_PATH."
+ " You want to: export LD_LIBRARY_PATH=${NS3_LIBRARY_PATH}\${LD_LIBRARY_PATH:+:\$LD_LIBRARY_PATH}")
+ endif()
+ endif()
+ endif()
+endif()
+mark_as_advanced(NS3_LIBRARY_PATH)
+
+message("NS3_VERSION: ${NS3_VERSION}")
+message("NS3_LIBRARIES: ${NS3_LIBRARIES}")
+
+if(HAVE_NS3)
+ link_directories(${NS3_LIBRARY_PATH})
+ include_directories(${NS3_INCLUDE_DIR})
+else()
+ message(STATUS "Warning: To use NS-3 Please install ns3 at least version 3.10 (http://www.nsnam.org/releases/)")
+endif()