1
0
Fork 0
mirror of https://github.com/hb9fxq/gr-digitalhf synced 2024-11-05 13:55:53 +00:00
gr-digitalhf/cmake/Modules/digitalhfConfig.cmake

31 lines
806 B
CMake
Raw Normal View History

2018-10-24 18:17:58 +00:00
INCLUDE(FindPkgConfig)
PKG_CHECK_MODULES(PC_DIGITALHF digitalhf)
FIND_PATH(
DIGITALHF_INCLUDE_DIRS
NAMES digitalhf/api.h
HINTS $ENV{DIGITALHF_DIR}/include
${PC_DIGITALHF_INCLUDEDIR}
PATHS ${CMAKE_INSTALL_PREFIX}/include
/usr/local/include
/usr/include
)
FIND_LIBRARY(
DIGITALHF_LIBRARIES
NAMES gnuradio-digitalhf
HINTS $ENV{DIGITALHF_DIR}/lib
${PC_DIGITALHF_LIBDIR}
PATHS ${CMAKE_INSTALL_PREFIX}/lib
${CMAKE_INSTALL_PREFIX}/lib64
/usr/local/lib
/usr/local/lib64
/usr/lib
/usr/lib64
)
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(DIGITALHF DEFAULT_MSG DIGITALHF_LIBRARIES DIGITALHF_INCLUDE_DIRS)
MARK_AS_ADVANCED(DIGITALHF_LIBRARIES DIGITALHF_INCLUDE_DIRS)