1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
# - Try to find webm
# Once done this will define
#
# WEBM_FOUND - system has libwebm
# WEBM_INCLUDE_DIRS - the libwebm include directory
# WEBM_LIBRARIES - The libwebm libraries
if(PKG_CONFIG_FOUND)
pkg_check_modules(PC_WEBM libwebm QUIET)
endif()
find_path(WEBM_INCLUDE_DIR webm/webm_parser.h PATHS ${PC_WEBM_INCLUDEDIR})
find_library(WEBM_LIBRARY webm libwebm PATHS ${PC_WEBM_LIBDIR})
set(WEBM_VERSION ${PC_WEBM_VERSION})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(WEBM
REQUIRED_VARS WEBM_INCLUDE_DIR WEBM_LIBRARY
VERSION_VAR WEBM_VERSION)
if(WEBM_FOUND)
set(WEBM_LIBRARIES ${WEBM_LIBRARY})
set(WEBM_INCLUDE_DIRS ${WEBM_INCLUDE_DIR})
endif()
mark_as_advanced(WEBM_INCLUDE_DIRS WEBM_LIBRARIES)
|