File: FindDAG.cmake

package info (click to toggle)
libpcap 1.10.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,964 kB
  • sloc: ansic: 48,656; sh: 3,784; makefile: 1,076; lex: 668; python: 254; asm: 227
file content (39 lines) | stat: -rw-r--r-- 838 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#
# Try to find the Endace DAG library.
#

# Try to find the header
find_path(DAG_INCLUDE_DIR dagapi.h)

#
# Try to find the libraries
#
# We assume that if we have libdag we have libdagconf, as they're
# installed at the same time from the same package.
#
find_library(DAG_LIBRARY dag)
find_library(DAGCONF_LIBRARY dagconf)

#
# Get link information from the _LIBRARY paths.
#
get_link_info_from_library_path(DAG dag)
get_link_info_from_library_path(DAGCONF dagconf)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(DAG
  DEFAULT_MSG
  DAG_INCLUDE_DIR
  DAG_LIBRARY
  DAGCONF_LIBRARY
)

mark_as_advanced(
  DAG_INCLUDE_DIR
  DAG_LIBRARY
  DAGCONF_LIBRARY
)

set(DAG_INCLUDE_DIRS ${DAG_INCLUDE_DIR})
set(DAG_LIBRARIES ${DAG_LIBRARY} ${DAGCONF_LIBRARY})
set(DAG_STATIC_LIBRARIES ${DAG_LIBRARY} ${DAGCONF_LIBRARY})