Files
Payload-SDK/samples/sample_c/platform/linux/common/3rdparty/FindOPUS.cmake
DJI-Martin 08b76b678d NEW: release DJI Payload-SDK version 3.2
Signed-off-by: DJI-Martin <DJI-Martin@dji.com>
2022-08-08 15:43:55 +08:00

34 lines
746 B
CMake

#
# Find the native OPUS includes and library
#
# This module defines
# OPUS_INCLUDE_DIR, where to find opus.h
# OPUS_LIBRARY, the libraries to link against to use OPUS.
# OPUS_FOUND, If false, do not try to use OPUS.
FIND_PATH(OPUS_INCLUDE_DIR opus.h
PATHS
/usr/local/include/opus
/usr/include/opus
/opt/local/include
/opt/include
)
get_filename_component(OPUS_INCLUDE_DIR ${OPUS_INCLUDE_DIR} ABSOLUTE)
FIND_LIBRARY(OPUS_LIBRARY opus
/usr/local/lib
/usr/lib
)
IF (OPUS_INCLUDE_DIR)
IF (OPUS_LIBRARY)
SET(OPUS_FOUND "YES")
ENDIF (OPUS_LIBRARY)
ENDIF (OPUS_INCLUDE_DIR)
MARK_AS_ADVANCED(
OPUS_INCLUDE_DIR
OPUS_LIBRARY
OPUS_FOUND
)