Commit fd87d560 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

FindLibvlc.cmake: Don't require nor look for libvlccore

parent 2379394e
......@@ -53,30 +53,16 @@ FIND_LIBRARY(LIBVLC_LIBRARY NAMES vlc libvlc
c:/msys/local/lib
)
FIND_LIBRARY(LIBVLC_LIBRARY NAMES vlc libvlc)
FIND_LIBRARY(LIBVLCCORE_LIBRARY NAMES vlccore libvlccore
HINTS "$ENV{LIBVLC_LIBRARY_PATH}"
PATHS
"$ENV{LIB_DIR}/lib"
#Mac OS
"${CMAKE_CURRENT_SOURCE_DIR}/contribs/lib"
"${CMAKE_CURRENT_SOURCE_DIR}/contribs/plugins"
# MacOS install dir
/Applications/VLC.app/Contents/MacOS/lib
#mingw
c:/msys/local/lib
)
FIND_LIBRARY(LIBVLCCORE_LIBRARY NAMES vlccore libvlccore)
IF (LIBVLC_INCLUDE_DIR AND LIBVLC_LIBRARY AND LIBVLCCORE_LIBRARY)
IF (LIBVLC_INCLUDE_DIR AND LIBVLC_LIBRARY)
SET(LIBVLC_FOUND TRUE)
ENDIF (LIBVLC_INCLUDE_DIR AND LIBVLC_LIBRARY AND LIBVLCCORE_LIBRARY)
ENDIF (LIBVLC_INCLUDE_DIR AND LIBVLC_LIBRARY)
IF (LIBVLC_FOUND)
get_filename_component(LIBVLC_LIB_DIR ${LIBVLC_LIBRARY} PATH)
IF (NOT LIBVLC_FIND_QUIETLY)
MESSAGE(STATUS "Found LibVLC include-dir path: ${LIBVLC_INCLUDE_DIR}")
MESSAGE(STATUS "Found LibVLC library path:${LIBVLC_LIBRARY}")
MESSAGE(STATUS "Found LibVLCcore library path:${LIBVLCCORE_LIBRARY}")
ENDIF (NOT LIBVLC_FIND_QUIETLY)
ELSE (LIBVLC_FOUND)
IF (LIBVLC_FIND_REQUIRED)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment