2018-02-06 02:34:10 -05:00
|
|
|
if(NOT LIBPERSEUS_FOUND)
|
|
|
|
|
|
|
|
pkg_check_modules (LIBPERSEUS_PKG libperseus)
|
2019-05-03 11:46:01 -04:00
|
|
|
|
|
|
|
find_path(LIBPERSEUS_INCLUDE_DIR
|
2019-01-02 15:33:45 -05:00
|
|
|
NAMES perseus-sdr.h
|
2019-07-25 20:04:42 -04:00
|
|
|
HINTS ${PERSEUS_DIR}/include
|
2019-01-02 15:33:45 -05:00
|
|
|
${LIBPERSEUS_PKG_INCLUDE_DIRS}
|
2019-07-25 20:04:42 -04:00
|
|
|
PATHS /usr/include
|
2019-01-02 15:33:45 -05:00
|
|
|
/usr/local/include
|
2018-02-06 02:34:10 -05:00
|
|
|
)
|
|
|
|
|
2019-05-03 11:46:01 -04:00
|
|
|
find_library(LIBPERSEUS_LIBRARIES
|
2019-01-02 15:33:45 -05:00
|
|
|
NAMES perseus-sdr
|
2019-07-25 20:04:42 -04:00
|
|
|
HINTS ${PERSEUS_DIR}/lib
|
2019-01-02 15:33:45 -05:00
|
|
|
${PERSEUS_DIR}/lib64
|
|
|
|
${LIBPERSEUS_PKG_LIBRARY_DIRS}
|
2019-07-25 20:04:42 -04:00
|
|
|
PATHS /usr/lib
|
2019-01-02 15:33:45 -05:00
|
|
|
/usr/local/lib
|
2018-02-06 02:34:10 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
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)
|
2019-05-03 11:46:01 -04:00
|
|
|
set(LIBPERSEUS_FOUND FALSE CACHE INTERNAL "libperseus not found")
|
2018-02-06 02:34:10 -05:00
|
|
|
message(STATUS "libperseus not found.")
|
|
|
|
endif(LIBPERSEUS_INCLUDE_DIR AND LIBPERSEUS_LIBRARIES)
|
|
|
|
|
|
|
|
mark_as_advanced(LIBPERSEUS_INCLUDE_DIR LIBPERSEUS_LIBRARIES)
|
|
|
|
|
|
|
|
endif(NOT LIBPERSEUS_FOUND)
|