owlps/cmake/Modules/FindIwlib.cmake

18 lines
454 B
CMake
Raw Normal View History

2013-05-22 23:13:24 +02:00
# 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)