]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - cmake/Modules/FindDAG.cmake
Import vendor revision 77da77c36e5d958f9b8d6729876a33f670de031f from:
[FreeBSD/FreeBSD.git] / cmake / Modules / FindDAG.cmake
1 #
2 # Try to find the Endace DAG library.
3 #
4
5 # Try to find the header
6 find_path(DAG_INCLUDE_DIR dagapi.h)
7
8 #
9 # Try to find the libraries
10 #
11 # We assume that if we have libdag we have libdagconf, as they're
12 # installed at the same time from the same package.
13 #
14 find_library(DAG_LIBRARY dag)
15 find_library(DAGCONF_LIBRARY dagconf)
16
17 include(FindPackageHandleStandardArgs)
18 find_package_handle_standard_args(DAG
19   DEFAULT_MSG
20   DAG_INCLUDE_DIR
21   DAG_LIBRARY
22   DAGCONF_LIBRARY
23 )
24
25 mark_as_advanced(
26   DAG_INCLUDE_DIR
27   DAG_LIBRARY
28   DAGCONF_LIBRARY
29 )
30
31 set(DAG_INCLUDE_DIRS ${DAG_INCLUDE_DIR})
32 set(DAG_LIBRARIES ${DAG_LIBRARY} ${DAGCONF_LIBRARY})