18 lines
454 B
CMake
18 lines
454 B
CMake
|
# This module tries to find the iwlib library (from the Wireless Tools)
|
||
|
# and sets the following variables:
|
||
|
# IWLIB_INCLUDE_DIR
|
||
|
# IWLIB_LIBRARY
|
||
|
# IWLIB_FOUND
|
||
|
|
||
|
# Search for the header file
|
||
|
find_path(IWLIB_INCLUDE_DIR iwlib.h
|
||
|
PATH_SUFFIXES include)
|
||
|
|
||
|
# Search for the library
|
||
|
find_library(IWLIB_LIBRARY iw
|
||
|
PATH_SUFFIXES lib)
|
||
|
|
||
|
# Did we find everything we need?
|
||
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Iwlib DEFAULT_MSG
|
||
|
IWLIB_LIBRARY IWLIB_INCLUDE_DIR)
|