mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-25 04:03:30 -05:00
34 lines
880 B
CMake
34 lines
880 B
CMake
if(NOT LIBXTRX_FOUND)
|
|
|
|
pkg_check_modules (LIBXTRX_PKG libxtrx)
|
|
|
|
find_path(LIBXTRX_INCLUDE_DIRS
|
|
NAMES xtrx_api.h
|
|
PATHS ${XTRX_DIR}/include
|
|
${LIBXTRX_PKG_INCLUDE_DIRS}
|
|
/usr/include
|
|
/usr/local/include
|
|
)
|
|
|
|
find_library(LIBXTRX_LIBRARY
|
|
NAMES xtrx
|
|
HINTS ${CMAKE_INSTALL_PREFIX}/lib
|
|
${CMAKE_INSTALL_PREFIX}/lib64
|
|
PATHS ${XTRX_DIR}/lib
|
|
/usr/local/lib
|
|
/usr/local/lib64
|
|
/usr/lib
|
|
/usr/lib64
|
|
)
|
|
|
|
if(LIBXTRX_INCLUDE_DIRS AND LIBXTRX_LIBRARY)
|
|
set(LIBXTRX_FOUND TRUE CACHE INTERNAL "libxtrx found")
|
|
message(STATUS "Found libxtrx: ${LIBXTRX_INCLUDE_DIRS}, ${LIBXTRX_LIBRARY}")
|
|
else()
|
|
set(LIBXTRX_FOUND FALSE CACHE INTERNAL "libxtrx found")
|
|
message(STATUS "libxtrx not found.")
|
|
endif()
|
|
|
|
mark_as_advanced(LIBXTRX_INCLUDE_DIRS LIBXTRX_LIBRARY)
|
|
|
|
endif(NOT LIBXTRX_FOUND) |