~ubuntu-branches/ubuntu/vivid/knemo/vivid

« back to all changes in this revision

Viewing changes to cmake/modules/FindLibnl.cmake

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2013-05-11 18:56:39 UTC
  • mfrom: (2.2.5 experimental)
  • Revision ID: package-import@ubuntu.com-20130511185639-br5lb3qjrxtec0zf
Tags: 0.7.6-2
* Upload to unstable.
* Use canonical Vcs-Svn URI.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#  LIBNL_LIBRARIES - the libnl library
6
6
#  LIBNL_INCLUDE_DIR - the include path of the libnl library
7
7
 
8
 
find_library (LIBNL_LIBRARY nl)
 
8
find_library (LIBNL_LIBRARY nl-3)
 
9
find_library (LIBNL_ROUTE_LIBRARY nl-route-3)
9
10
 
10
 
set(LIBNL_LIBRARIES ${LIBNL_LIBRARY})
 
11
set(LIBNL_LIBRARIES
 
12
    ${LIBNL_LIBRARY}
 
13
    ${LIBNL_ROUTE_LIBRARY}
 
14
)
11
15
 
12
16
find_path (LIBNL_INCLUDE_DIR
13
17
  NAMES
14
 
  netlink.h
 
18
  netlink/netlink.h
15
19
  PATH_SUFFIXES
16
 
  netlink
 
20
  libnl3
17
21
)
18
22
 
19
23
include(FindPackageHandleStandardArgs)
20
 
find_package_handle_standard_args(Libnl  DEFAULT_MSG  LIBNL_LIBRARY LIBNL_INCLUDE_DIR)
 
24
find_package_handle_standard_args(Libnl  DEFAULT_MSG  LIBNL_LIBRARIES LIBNL_INCLUDE_DIR)
21
25
 
22
 
mark_as_advanced(LIBNL_INCLUDE_DIR LIBNL_LIBRARY)
 
26
include_directories("${LIBNL_INCLUDE_DIR}")
 
27
mark_as_advanced(LIBNL_INCLUDE_DIR LIBNL_LIBRARY LIBNL_ROUTE_LIBRARY)