[7615] | 1 | # Find ALUT includes and library |
---|
| 2 | # |
---|
[1505] | 3 | # This module defines |
---|
[7615] | 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 |
---|
[1505] | 7 | # |
---|
[7615] | 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) |
---|
[1505] | 11 | # |
---|
[7615] | 12 | # Redistribution and use is allowed according to the terms of the BSD license. |
---|
[1776] | 13 | # |
---|
| 14 | # Several changes and additions by Fabian 'x3n' Landau |
---|
[7615] | 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 |
---|
[1776] | 18 | # > www.orxonox.net < |
---|
| 19 | |
---|
[7615] | 20 | INCLUDE(FindPackageHandleAdvancedArgs) |
---|
[2710] | 21 | INCLUDE(HandleLibraryTypes) |
---|
[1776] | 22 | |
---|
[7615] | 23 | FIND_PATH(ALUT_INCLUDE_DIR alut.h |
---|
| 24 | PATHS $ENV{ALUTDIR} |
---|
| 25 | PATH_SUFFIXES include include/AL ALUT |
---|
[2710] | 26 | ) |
---|
[7615] | 27 | FIND_LIBRARY(ALUT_LIBRARY_OPTIMIZED |
---|
| 28 | NAMES ALUT |
---|
| 29 | PATHS $ENV{ALUTDIR} |
---|
| 30 | PATH_SUFFIXES lib bin/Release bin/release Release release ALUT |
---|
| 31 | ) |
---|
| 32 | FIND_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 | ) |
---|
[1776] | 37 | |
---|
[2710] | 38 | # Handle the REQUIRED argument and set ALUT_FOUND |
---|
[7615] | 39 | # Also check the version requirements |
---|
| 40 | FIND_PACKAGE_HANDLE_ADVANCED_ARGS(ALUT DEFAULT_MSG |
---|
| 41 | ALUT_LIBRARY_OPTIMIZED |
---|
| 42 | ALUT_INCLUDE_DIR |
---|
[2710] | 43 | ) |
---|
[1505] | 44 | |
---|
[2710] | 45 | # Collect optimized and debug libraries |
---|
| 46 | HANDLE_LIBRARY_TYPES(ALUT) |
---|
[1505] | 47 | |
---|
[2710] | 48 | MARK_AS_ADVANCED( |
---|
[7615] | 49 | ALUT_INCLUDE_DIR |
---|
| 50 | ALUT_LIBRARY_OPTIMIZED |
---|
| 51 | ALUT_LIBRARY_DEBUG |
---|
[2710] | 52 | ) |
---|