You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3 KiB
CMake

#
# Copyright 2013-2021 Software Radio Systems Limited
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the distribution.
#
# - Try to find SRSGUI
# Once done this will define
# SRSGUI_FOUND - System has srsgui
# SRSGUI_INCLUDE_DIRS - The srsgui include directories
# SRSGUI_LIBRARIES - The srsgui library
find_package(PkgConfig)
pkg_check_modules(PC_SRSGUI QUIET srsgui)
IF(NOT SRSGUI_FOUND)
FIND_PATH(
SRSGUI_INCLUDE_DIRS
NAMES srsgui/srsgui.h
HINTS ${PC_SRSGUI_INCLUDEDIR}
${PC_SRSGUI_INCLUDE_DIRS}
$ENV{SRSGUI_DIR}/include
PATHS /usr/local/include
/usr/include
)
FIND_LIBRARY(
SRSGUI_LIBRARIES
NAMES srsgui
HINTS ${PC_SRSGUI_LIBDIR}
${CMAKE_INSTALL_PREFIX}/lib
${CMAKE_INSTALL_PREFIX}/lib64
$ENV{SRSGUI_DIR}/lib
PATHS /usr/local/lib
/usr/local/lib64
/usr/lib
/usr/lib64
)
message(STATUS "SRSGUI LIBRARIES " ${SRSGUI_LIBRARIES})
message(STATUS "SRSGUI INCLUDE DIRS " ${SRSGUI_INCLUDE_DIRS})
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SRSGUI DEFAULT_MSG SRSGUI_LIBRARIES SRSGUI_INCLUDE_DIRS)
MARK_AS_ADVANCED(SRSGUI_LIBRARIES SRSGUI_INCLUDE_DIRS)
ENDIF(NOT SRSGUI_FOUND)