mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 19:02:48 +00:00

kcompactdisc was remove because there is no use for it in the current set of applications supported, if it is needed it will need some work to make it use KMediaPlayer or whatever. the Plasma VideoWidget class was dropped because custom widgets (at some point) will be dropped unless absolutely needed and hopefully getting rid of the heavy-weight QML stuff. the new KMediaPlayer and KMediaWidgets classes are experimental but they have been tested and they work as they should. Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
46 lines
988 B
CMake
46 lines
988 B
CMake
# - Try to find MPV
|
|
# Once done this will define
|
|
#
|
|
# MPV_FOUND - system has MPV
|
|
# MPV_INCLUDES - the MPV include directory
|
|
# MPV_LIBRARIES - The libraries needed to use MPV
|
|
#
|
|
# Copyright (c) 2015, Ivailo Monev, <xakepa10@gmail.com>
|
|
#
|
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
|
|
|
if(MPV_INCLUDES AND MPV_LIBRARIES)
|
|
set(MPV_FIND_QUIETLY TRUE)
|
|
endif()
|
|
|
|
if(NOT WIN32)
|
|
include(FindPkgConfig)
|
|
pkg_check_modules(PC_MPV QUIET mpv)
|
|
endif()
|
|
|
|
find_path(MPV_INCLUDES
|
|
NAMES
|
|
client.h
|
|
PATH_SUFFIXES mpv
|
|
HINTS
|
|
$ENV{MPVDIR}/include
|
|
${PC_MPV_INCLUDEDIR}
|
|
/usr/include
|
|
/usr/local/include
|
|
${INCLUDE_INSTALL_DIR}
|
|
)
|
|
|
|
find_library(MPV_LIBRARIES
|
|
mpv
|
|
HINTS
|
|
$ENV{MPVDIR}/lib
|
|
${PC_MPV_LIBDIR}
|
|
/usr/lib
|
|
/usr/local/lib
|
|
${LIB_INSTALL_DIR}
|
|
)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(MPV DEFAULT_MSG MPV_INCLUDES MPV_LIBRARIES)
|
|
|
|
mark_as_advanced(MPV_INCLUDES MPV_LIBRARIES)
|