Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ois_update/cmake/tools/FindALUT.cmake @ 7660

Last change on this file since 7660 was 7615, checked in by youngk, 14 years ago

ALUT is now automatically found on the Mac

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1# Find ALUT includes and library
2#
3# This module defines
4#  ALUT_INCLUDE_DIR
5#  ALUT_LIBRARY, the library to link against to use ALUT.
6#  ALUT_FOUND, If false, do not try to use ALUT
7#
8# Copyright © 2007, Matt Williams
9# Modified by Nicolas Schlumberger to make it work on the Tardis-Infrastucture
10# of the ETH Zurich (removed later on)
11#
12# Redistribution and use is allowed according to the terms of the BSD license.
13#
14# Several changes and additions by Fabian 'x3n' Landau
15# Lots of simplifications by Adrian Friedli
16# Version checking by Reto Grieder
17# Adaption of the OGRE find script to ALUT by Kevin Young
18#                 > www.orxonox.net <
19
20INCLUDE(FindPackageHandleAdvancedArgs)
21INCLUDE(HandleLibraryTypes)
22
23FIND_PATH(ALUT_INCLUDE_DIR alut.h
24  PATHS $ENV{ALUTDIR}
25  PATH_SUFFIXES include include/AL ALUT
26)
27FIND_LIBRARY(ALUT_LIBRARY_OPTIMIZED
28  NAMES ALUT 
29  PATHS $ENV{ALUTDIR}
30  PATH_SUFFIXES lib bin/Release bin/release Release release ALUT
31)
32FIND_LIBRARY(ALUT_LIBRARY_DEBUG
33  NAMES ALUTD alutd alut_d alutD alut_D
34  PATHS $ENV{ALUTDIR}
35  PATH_SUFFIXES lib bin/Debug bin/debug Debug debug ALUT
36)
37
38# Handle the REQUIRED argument and set ALUT_FOUND
39# Also check the version requirements
40FIND_PACKAGE_HANDLE_ADVANCED_ARGS(ALUT DEFAULT_MSG
41  ALUT_LIBRARY_OPTIMIZED
42  ALUT_INCLUDE_DIR
43)
44
45# Collect optimized and debug libraries
46HANDLE_LIBRARY_TYPES(ALUT)
47
48MARK_AS_ADVANCED(
49  ALUT_INCLUDE_DIR
50  ALUT_LIBRARY_OPTIMIZED
51  ALUT_LIBRARY_DEBUG
52)
Note: See TracBrowser for help on using the repository browser.