File: FindXine.cmake

package info (click to toggle)
openscenegraph 3.2.3%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 32,824 kB
  • sloc: cpp: 370,040; ansic: 9,071; java: 1,020; yacc: 548; objc: 288; makefile: 285; xml: 155; lex: 151
file content (47 lines) | stat: -rw-r--r-- 984 bytes parent folder | download | duplicates (10)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Locate gdal
# This module defines
# XINE_LIBRARY
# XINE_FOUND, if false, do not try to link to gdal 
# XINE_INCLUDE_DIR, where to find the headers
#
# $XINE_DIR is an environment variable that would
# correspond to the ./configure --prefix=$XINE_DIR
#
# Created by Robert Osfield. 

FIND_PATH(XINE_INCLUDE_DIR xine.h
    $ENV{XINE_DIR}/include
    $ENV{XINE_DIR}
    ~/Library/Frameworks
    /Library/Frameworks
    /usr/local/include
    /usr/include
    /sw/include # Fink
    /opt/local/include # DarwinPorts
    /opt/csw/include # Blastwave
    /opt/include
    /usr/freeware/include
)

FIND_LIBRARY(XINE_LIBRARY 
    NAMES xine
    PATHS
    $ENV{XINE_DIR}/lib
    $ENV{XINE_DIR}
    ~/Library/Frameworks
    /Library/Frameworks
    /usr/local/lib
    /usr/lib
    /sw/lib
    /opt/local/lib
    /opt/csw/lib
    /opt/lib
    /usr/freeware/lib64
)

SET(XINE_FOUND "NO")
IF(XINE_LIBRARY AND XINE_INCLUDE_DIR)
    SET(XINE_FOUND "YES")
ENDIF(XINE_LIBRARY AND XINE_INCLUDE_DIR)