blob: 388e1ab7abe28977c45074007870bb59e3da8f04 (
plain)
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
|
# - Try to find the XINE library using standard cmake tool PKG_CHECK_MODULES
# Copyright (c) 2008 Helio Chissini de Castro, <helio@kde.org>
# Copyright (c) 2006,2007 Laurent Montel, <montel@kde.org>
# Copyright (c) 2006, Matthias Kretz, <kretz@kde.org>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
if (XINE_INCLUDEDIR AND XINE_LIBRARY)
# Already in cache, be silent
set(Xine_FIND_QUIETLY TRUE)
endif (XINE_INCLUDE_DIR AND XINE_LIBRARY)
IF (NOT WIN32)
PKG_CHECK_MODULES(PKG_XINE libxine>=1.1.9)
ENDIF (NOT WIN32)
if( XINE_FOUND )
SET(CMAKE_REQUIRED_INCLUDES ${XINE_INCLUDEDIR})
SET(CMAKE_REQUIRED_LIBRARIES ${XINE_LIBRARY})
if (NOT Xine_FIND_QUIETLY)
message(STATUS "Found XINE: ${XINE_LIBRARY}")
endif (NOT Xine_FIND_QUIETLY)
endif(XINE_FOUND)
|