1 # - Try to find the Xine library
2 # Once done this will define
4 # XINE_FOUND - system has the Xine library
5 # XINE_INCLUDE_DIR - the Xine include directory
6 # XINE_LIBRARY - The libraries needed to use Xine
8 if (XINE_INCLUDE_DIR AND XINE_LIBRARY)
9 # Already in cache, be silent
10 set(Xine_FIND_QUIETLY TRUE)
11 endif (XINE_INCLUDE_DIR AND XINE_LIBRARY)
13 FIND_PATH(XINE_INCLUDE_DIR xine.h
18 FIND_LIBRARY(XINE_LIBRARY NAMES xine
24 if (XINE_INCLUDE_DIR AND XINE_LIBRARY)
26 endif (XINE_INCLUDE_DIR AND XINE_LIBRARY)
29 if (NOT Xine_FIND_QUIETLY)
30 message(STATUS "Found Xine library: ${XINE_LIBRARY}")
31 endif (NOT Xine_FIND_QUIETLY)
33 if (Xine_FIND_REQUIRED)
34 message(FATAL_ERROR "Could NOT find Xine library")
35 endif (Xine_FIND_REQUIRED)
38 MARK_AS_ADVANCED(XINE_INCLUDE_DIR XINE_LIBRARY)