mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-18 06:11:46 -05:00
30 lines
887 B
CMake
30 lines
887 B
CMake
|
INCLUDE(FindPkgConfig)
|
||
|
PKG_CHECK_MODULES(PC_GNURADIO_RUNTIME gnuradio-runtime)
|
||
|
|
||
|
FIND_PATH(
|
||
|
GNURADIO_RUNTIME_INCLUDE_DIRS
|
||
|
NAMES gnuradio/api.h
|
||
|
HINTS $ENV{GNURADIO_RUNTIME_DIR}/include
|
||
|
${PC_GNURADIO_RUNTIME_INCLUDEDIR}
|
||
|
${CMAKE_INSTALL_PREFIX}/include
|
||
|
PATHS /usr/local/include
|
||
|
/usr/include
|
||
|
)
|
||
|
|
||
|
FIND_LIBRARY(
|
||
|
GNURADIO_RUNTIME_LIBRARIES
|
||
|
NAMES gnuradio-runtime
|
||
|
HINTS $ENV{GNURADIO_RUNTIME_DIR}/lib
|
||
|
${PC_GNURADIO_RUNTIME_LIBDIR}
|
||
|
${CMAKE_INSTALL_PREFIX}/lib64
|
||
|
${CMAKE_INSTALL_PREFIX}/lib
|
||
|
PATHS /usr/local/lib
|
||
|
/usr/local/lib64
|
||
|
/usr/lib
|
||
|
/usr/lib64
|
||
|
)
|
||
|
|
||
|
INCLUDE(FindPackageHandleStandardArgs)
|
||
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GNURADIO_RUNTIME DEFAULT_MSG GNURADIO_RUNTIME_LIBRARIES GNURADIO_RUNTIME_INCLUDE_DIRS)
|
||
|
MARK_AS_ADVANCED(GNURADIO_RUNTIME_LIBRARIES GNURADIO_RUNTIME_INCLUDE_DIRS)
|