~ubuntu-branches/ubuntu/lucid/cmake/lucid

« back to all changes in this revision

Viewing changes to Modules/FindSDL.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2009-12-16 11:11:54 UTC
  • mfrom: (3.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20091216111154-6accvv6yq86h2hkc
Tags: 2.8.0-5ubuntu1
* Merge from debian testing (LP: #497349). Remaining changes:
  - Keep the Replaces: on cmake-data to cover the Kubuntu version from
    Jaunty in case someone decides to do an (unsupported) Jaunty->Lucid
    upgrade.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
# is #include "SDL.h", not <SDL/SDL.h>. This is done for portability
53
53
# reasons because not all systems place things in SDL/ (see FreeBSD).
54
54
 
 
55
#=============================================================================
 
56
# Copyright 2003-2009 Kitware, Inc.
 
57
#
 
58
# Distributed under the OSI-approved BSD License (the "License");
 
59
# see accompanying file Copyright.txt for details.
 
60
#
 
61
# This software is distributed WITHOUT ANY WARRANTY; without even the
 
62
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
63
# See the License for more information.
 
64
#=============================================================================
 
65
# (To distributed this file outside of CMake, substitute the full
 
66
#  License text for the above reference.)
 
67
 
55
68
FIND_PATH(SDL_INCLUDE_DIR SDL.h
56
69
  HINTS
57
70
  $ENV{SDLDIR}
58
 
  PATH_SUFFIXES include
 
71
  PATH_SUFFIXES include/SDL include
59
72
  PATHS
60
73
  ~/Library/Frameworks
61
74
  /Library/Frameworks
62
 
  /usr/local/include/SDL
63
 
  /usr/include/SDL
64
75
  /usr/local/include/SDL12
65
76
  /usr/local/include/SDL11 # FreeBSD ports
66
77
  /usr/include/SDL12
67
78
  /usr/include/SDL11
68
 
  /usr/local/include
69
 
  /usr/include
70
 
  /sw/include/SDL # Fink
71
 
  /sw/include
72
 
  /opt/local/include/SDL # DarwinPorts
73
 
  /opt/local/include
74
 
  /opt/csw/include/SDL # Blastwave
75
 
  /opt/csw/include 
76
 
  /opt/include/SDL
77
 
  /opt/include
 
79
  /sw # Fink
 
80
  /opt/local # DarwinPorts
 
81
  /opt/csw # Blastwave
 
82
  /opt
78
83
)
79
84
#MESSAGE("SDL_INCLUDE_DIR is ${SDL_INCLUDE_DIR}")
80
85
 
86
91
  $ENV{SDLDIR}
87
92
  PATH_SUFFIXES lib64 lib
88
93
  PATHS
89
 
  /usr/local
90
 
  /usr
91
94
  /sw
92
95
  /opt/local
93
96
  /opt/csw
108
111
      $ENV{SDLDIR}
109
112
      PATH_SUFFIXES lib64 lib
110
113
      PATHS
111
 
      /usr/local
112
 
      /usr
113
114
      /sw
114
115
      /opt/local
115
116
      /opt/csw