forked from jocover/SoapyPlutoSDR
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
374 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# - Try to find libiio | ||
# Once done this will define | ||
# | ||
# LIBIIO_FOUND - system has libiio | ||
# LIBIIO_INCLUDE_DIRS - the libiio include directory | ||
# LIBIIO_LIBRARIES - Link these to use libiio | ||
# LIBIIO_DEFINITIONS - Compiler switches required for using libiio | ||
# | ||
# Redistribution and use is allowed according to the terms of the New BSD license. | ||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||
# | ||
|
||
include(FindPkgConfig) | ||
pkg_check_modules(PC_LIBIIO QUIET libiio) | ||
set(LIBIIO_DEFINITIONS ${PC_LIBIIO_CFLAGS_OTHER}) | ||
|
||
find_path(LIBIIO_INCLUDE_DIR iio.h | ||
HINTS ${PC_LIBIIO_INCLUDEDIR} ${PC_LIBIIO_INCLUDE_DIRS} | ||
PATH_SUFFIXES libiio) | ||
|
||
find_library(LIBIIO_LIBRARY NAMES iio libiio | ||
HINTS ${PC_LIBIIO_LIBDIR} ${PC_LIBIIO_LIBRARY_DIRS}) | ||
|
||
set(LIBIIO_VERSION ${PC_LIBIIO_VERSION}) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(libiio | ||
REQUIRED_VARS LIBIIO_LIBRARY LIBIIO_INCLUDE_DIR | ||
VERSION_VAR LIBIIO_VERSION) | ||
|
||
mark_as_advanced(LIBIIO_INCLUDE_DIR LIBIIO_LIBRARY) | ||
|
||
set(LIBIIO_LIBRARIES ${LIBIIO_LIBRARY}) | ||
set(LIBIIO_INCLUDE_DIRS ${LIBIIO_INCLUDE_DIR}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.