2016-04-21 00:13:57 +00:00
|
|
|
# Find libdsdcc
|
|
|
|
|
|
|
|
if(NOT LIBDSDCC_FOUND)
|
|
|
|
|
2019-04-15 08:40:09 +00:00
|
|
|
pkg_check_modules(LIBDSDCC_PKG libdsdcc)
|
2019-07-26 00:04:42 +00:00
|
|
|
|
|
|
|
find_path(LIBDSDCC_INCLUDE_DIR
|
2019-04-15 08:40:09 +00:00
|
|
|
NAMES dsdcc/dsd_decoder.h
|
2019-07-26 00:04:42 +00:00
|
|
|
HINTS ${DSDCC_DIR}/include
|
2019-01-02 20:33:45 +00:00
|
|
|
${LIBDSDCC_PKG_INCLUDE_DIRS}
|
2019-07-26 00:04:42 +00:00
|
|
|
PATHS /usr/include/dsdcc
|
2019-01-02 20:33:45 +00:00
|
|
|
/usr/local/include/dsdcc
|
2016-04-21 00:13:57 +00:00
|
|
|
)
|
|
|
|
|
2019-07-26 00:04:42 +00:00
|
|
|
find_library(LIBDSDCC_LIBRARIES
|
2019-01-02 20:33:45 +00:00
|
|
|
NAMES dsdcc
|
2019-07-26 00:04:42 +00:00
|
|
|
HINTS ${DSDCC_DIR}/lib
|
2019-01-02 20:33:45 +00:00
|
|
|
${DSDCC_DIR}/lib64
|
|
|
|
${LIBDSDCC_PKG_LIBRARY_DIRS}
|
2019-07-26 00:04:42 +00:00
|
|
|
PATHS /usr/lib
|
2019-01-02 20:33:45 +00:00
|
|
|
/usr/lib64
|
|
|
|
/usr/local/lib
|
|
|
|
/usr/local/lib64
|
2016-04-21 00:13:57 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
2017-05-08 09:05:15 +00:00
|
|
|
endif(NOT LIBDSDCC_FOUND)
|