mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 04:30:33 +00:00
b52846e7fd
git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@298 64b25241-fba3-4117-9849-534c7e92360d
52 lines
1.1 KiB
CMake
52 lines
1.1 KiB
CMake
# Tries to find gr-osmosdr.
|
|
#
|
|
# Usage of this module as follows:
|
|
#
|
|
# find_package(GrOsmoSDR)
|
|
#
|
|
# Variables used by this module, they can change the default behaviour and need
|
|
# to be set before calling find_package:
|
|
#
|
|
# GrOsmoSDR_ROOT_DIR Set this variable to the root installation of
|
|
# gr-osmosdr if the module has problems finding
|
|
# the proper installation path.
|
|
#
|
|
# Variables defined by this module:
|
|
#
|
|
# GROSMOSDR_FOUND System has gr-osmosdr libs/headers
|
|
# GROSMOSDR_LIBRARIES The gr-osmosdr libraries (gnuradio-osmosdr)
|
|
# GROSMOSDR_INCLUDE_DIR The location of gr-osmosdr headers
|
|
|
|
|
|
|
|
FIND_PATH(GROSMOSDR_INCLUDE_DIR
|
|
NAMES osmosdr/osmosdr_source_c.h
|
|
osmosdr/osmosdr_api.h
|
|
HINTS ${GrOsmoSDR_ROOT_DIR}/include
|
|
PATHS /usr/local/include
|
|
/usr/include
|
|
)
|
|
|
|
|
|
find_library(GROSMOSDR_LIBRARIES
|
|
NAMES gnuradio-osmosdr
|
|
HINTS ${GrOsmoSDR_ROOT_DIR}/lib
|
|
PATHS /usr/local/lib
|
|
/usr/lib
|
|
)
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(
|
|
GrOsmoSDR
|
|
DEFAULT_MSG
|
|
GROSMOSDR_LIBRARIES
|
|
GROSMOSDR_INCLUDE_DIR
|
|
)
|
|
|
|
mark_as_advanced(
|
|
GrOsmoSDR_ROOT_DIR
|
|
GROSMOSDR_LIBRARIES
|
|
GROSMOSDR_INCLUDE_DIR
|
|
)
|