mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 17:58:43 -05:00
37 lines
1.0 KiB
CMake
37 lines
1.0 KiB
CMake
# Find libdsdcc
|
|
|
|
if(NOT LIBDSDCC_FOUND)
|
|
|
|
pkg_check_modules (LIBDSDCC_PKG libdsdcc)
|
|
|
|
find_path(LIBDSDCC_INCLUDE_DIR
|
|
NAMES dsd_decoder.h
|
|
PATHS ${DSDCC_DIR}/include/dsdcc
|
|
${LIBDSDCC_PKG_INCLUDE_DIRS}
|
|
/usr/include/dsdcc
|
|
/usr/local/include/dsdcc
|
|
)
|
|
|
|
find_library(LIBDSDCC_LIBRARIES
|
|
NAMES dsdcc
|
|
PATHS ${DSDCC_DIR}/lib
|
|
${DSDCC_DIR}/lib64
|
|
${LIBDSDCC_PKG_LIBRARY_DIRS}
|
|
/usr/lib
|
|
/usr/lib64
|
|
/usr/local/lib
|
|
/usr/local/lib64
|
|
)
|
|
|
|
if(LIBDSDCC_INCLUDE_DIR AND LIBDSDCC_LIBRARIES)
|
|
set(LIBDSDCC_FOUND TRUE CACHE INTERNAL "libdsdcc found")
|
|
message(STATUS "Found libdsdcc: ${LIBDSDCC_INCLUDE_DIR}, ${LIBDSDCC_LIBRARIES}")
|
|
else(LIBDSDCC_INCLUDE_DIR AND LIBDSDCC_LIBRARIES)
|
|
set(LIBDSDCC_FOUND FALSE CACHE INTERNAL "libdsdcc found")
|
|
message(STATUS "libdsdcc not found.")
|
|
endif(LIBDSDCC_INCLUDE_DIR AND LIBDSDCC_LIBRARIES)
|
|
|
|
mark_as_advanced(LIBDSDCC_INCLUDE_DIR LIBDSDCC_LIBRARIES)
|
|
|
|
endif(NOT LIBDSDCC_FOUND)
|