aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-10-05 18:24:55 -0700
committerGuy Harris <guy@alum.mit.edu>2017-10-05 18:24:55 -0700
commit9713eb73798cf0a387ca98f555d54a627de4f626 (patch)
treeff35c75b915df42a2c9101581d694ff545bbcd7d /cmake
parentaa85c94d1df0c68789421ef604506e017d3fe585 (diff)
Use find modules for Myricom SNF and Riverbed TurboCap.
While we're at it, speak of "Endace DAG" rather than just "DAG", as we do for the other two.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindDAG.cmake2
-rw-r--r--cmake/FindSNF.cmake21
-rw-r--r--cmake/FindTC.cmake21
3 files changed, 43 insertions, 1 deletions
diff --git a/cmake/FindDAG.cmake b/cmake/FindDAG.cmake
index 0e27583f..2adb1876 100644
--- a/cmake/FindDAG.cmake
+++ b/cmake/FindDAG.cmake
@@ -1,5 +1,5 @@
#
-# Try to find the DAG library.
+# Try to find the Endace DAG library.
#
# Try to find the header
diff --git a/cmake/FindSNF.cmake b/cmake/FindSNF.cmake
new file mode 100644
index 00000000..aaa6e4a8
--- /dev/null
+++ b/cmake/FindSNF.cmake
@@ -0,0 +1,21 @@
+#
+# Try to find the Myricom SNF library.
+#
+
+# Try to find the header
+find_path(SNF_INCLUDE_DIR snf.h /opt/snf)
+
+# Try to find the library
+find_library(SNF_LIBRARY snf /opt/snf)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(SNF
+ DEFAULT_MSG
+ SNF_INCLUDE_DIR
+ SNF_LIBRARY
+)
+
+mark_as_advanced(
+ SNF_INCLUDE_DIR
+ SNF_LIBRARY
+)
diff --git a/cmake/FindTC.cmake b/cmake/FindTC.cmake
new file mode 100644
index 00000000..aca6fdc7
--- /dev/null
+++ b/cmake/FindTC.cmake
@@ -0,0 +1,21 @@
+#
+# Try to find the Riverbed TurboCap library.
+#
+
+# Try to find the header
+find_path(TC_INCLUDE_DIR TcApi.h)
+
+# Try to find the library
+find_library(TC_LIBRARY TcApi)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(TC
+ DEFAULT_MSG
+ TC_INCLUDE_DIR
+ TC_LIBRARY
+)
+
+mark_as_advanced(
+ TC_INCLUDE_DIR
+ TC_LIBRARY
+)