4 # ALUT_FOUND, if false, do not try to link to ALUT
5 # ALUT_INCLUDE_DIR, where to find the headers
7 # $ALUTDIR is an environment variable that would
8 # correspond to the ./configure --prefix=$ALUTDIR
9 # used in building ALUT.
11 # Created by James Turner. This was influenced by the FindOpenAL.cmake module.
13 #=============================================================================
14 # Copyright 2005-2009 Kitware, Inc.
16 # Distributed under the OSI-approved BSD License (the "License");
17 # see accompanying file Copyright.txt for details.
19 # This software is distributed WITHOUT ANY WARRANTY; without even the
20 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21 # See the License for more information.
22 #=============================================================================
23 # (To distributed this file outside of CMake, substitute the full
24 # License text for the above reference.)
26 # Per my request, CMake should search for frameworks first in
27 # the following order:
28 # ~/Library/Frameworks/OpenAL.framework/Headers
29 # /Library/Frameworks/OpenAL.framework/Headers
30 # /System/Library/Frameworks/OpenAL.framework/Headers
32 # On OS X, this will prefer the Framework version (if found) over others.
33 # People will have to manually change the cache values of
34 # OPENAL_LIBRARY to override this selection or set the CMake environment
35 # CMAKE_INCLUDE_PATH to modify the search paths.
37 FIND_PATH(ALUT_INCLUDE_DIR alut.h
40 PATH_SUFFIXES include/AL include/ALUT include
49 FIND_LIBRARY(ALUT_LIBRARY
53 PATH_SUFFIXES lib64 lib libs64 libs libs/Win32 libs/Win64
64 IF(ALUT_LIBRARY AND ALUT_INCLUDE_DIR)
66 ENDIF(ALUT_LIBRARY AND ALUT_INCLUDE_DIR)