mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-08-30 09:46:34 -04:00
29 lines
882 B
CMake
29 lines
882 B
CMake
if(NOT LIBPERSEUS_FOUND)
|
|
|
|
pkg_check_modules (LIBPERSEUS_PKG libperseus)
|
|
find_path(LIBPERSEUS_INCLUDE_DIR NAMES perseus-sdr.h
|
|
PATHS
|
|
${LIBPERSEUS_PKG_INCLUDE_DIRS}
|
|
/usr/include
|
|
/usr/local/include
|
|
)
|
|
|
|
find_library(LIBPERSEUS_LIBRARIES NAMES perseus-sdr
|
|
PATHS
|
|
${LIBPERSEUS_PKG_LIBRARY_DIRS}
|
|
/usr/lib
|
|
/usr/local/lib
|
|
)
|
|
|
|
if(LIBPERSEUS_INCLUDE_DIR AND LIBPERSEUS_LIBRARIES)
|
|
set(LIBPERSEUS_FOUND TRUE CACHE INTERNAL "libperseus found")
|
|
message(STATUS "Found libperseus: ${LIBPERSEUS_INCLUDE_DIR}, ${LIBPERSEUS_LIBRARIES}")
|
|
else(LIBPERSEUS_INCLUDE_DIR AND LIBPERSEUS_LIBRARIES)
|
|
set(LIBPERSEUS_FOUND FALSE CACHE INTERNAL "libperseus found")
|
|
message(STATUS "libperseus not found.")
|
|
endif(LIBPERSEUS_INCLUDE_DIR AND LIBPERSEUS_LIBRARIES)
|
|
|
|
mark_as_advanced(LIBPERSEUS_INCLUDE_DIR LIBPERSEUS_LIBRARIES)
|
|
|
|
endif(NOT LIBPERSEUS_FOUND)
|