summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAli Abdulkadir <autostart.ini@gmail.com>2017-10-05 04:56:19 +0300
committerAli Abdulkadir <autostart.ini@gmail.com>2017-10-05 04:56:19 +0300
commitf91ca7fca9df239e6118a842f0d9ec2c95618353 (patch)
tree3d9fdbeb648b1da53a91232b1652a3d7804b1eaf /cmake
parent1fac890f2266dab2f3bcd8034baa6447e5f04f45 (diff)
parenta511023dd7ebacff23ab220aa8315ccff2597a3b (diff)
downloadlibpcap-f91ca7fca9df239e6118a842f0d9ec2c95618353.tar.gz
Merge branch 'master' of https://github.com/the-tcpdump-group/libpcap into rpcapd
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindDAG.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/cmake/FindDAG.cmake b/cmake/FindDAG.cmake
new file mode 100644
index 00000000..0e27583f
--- /dev/null
+++ b/cmake/FindDAG.cmake
@@ -0,0 +1,21 @@
+#
+# Try to find the DAG library.
+#
+
+# Try to find the header
+find_path(DAG_INCLUDE_DIR dagapi.h)
+
+# Try to find the library
+find_library(DAG_LIBRARY dag)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(DAG
+ DEFAULT_MSG
+ DAG_INCLUDE_DIR
+ DAG_LIBRARY
+)
+
+mark_as_advanced(
+ DAG_INCLUDE_DIR
+ DAG_LIBRARY
+)