aboutsummaryrefslogtreecommitdiff
path: root/modules/FindXine.cmake
blob: 6221f96a67aa6e443aaba9731bd991394550d126 (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
28
# - 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_LIBRARIES)
    # Already in cache, be silent
    set(Xine_FIND_QUIETLY TRUE)
endif (XINE_INCLUDEDIR AND XINE_LIBRARIES)

IF (NOT WIN32)
    find_package(PkgConfig REQUIRED)
    pkg_check_modules(XINE libxine>=1.1.9)
ENDIF (NOT WIN32)

if( XINE_FOUND )
    SET(CMAKE_REQUIRED_INCLUDES ${XINE_INCLUDEDIR})
    SET(CMAKE_REQUIRED_LIBRARIES ${XINE_LIBRARIES})
    if (NOT Xine_FIND_QUIETLY)
        message(STATUS "Found XINE: ${XINE_LIBRARY}")
    endif (NOT Xine_FIND_QUIETLY)
endif(XINE_FOUND)