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