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 | |
---|
20 | INCLUDE(FindPackageHandleAdvancedArgs) |
---|
21 | INCLUDE(HandleLibraryTypes) |
---|
22 | |
---|
23 | FIND_PATH(ALUT_INCLUDE_DIR alut.h |
---|
24 | PATHS $ENV{ALUTDIR} |
---|
25 | PATH_SUFFIXES include include/AL ALUT |
---|
26 | ) |
---|
27 | FIND_LIBRARY(ALUT_LIBRARY_OPTIMIZED |
---|
28 | NAMES ALUT 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 | ) |
---|
37 | |
---|
38 | # Handle the REQUIRED argument and set ALUT_FOUND |
---|
39 | # Also check the version requirements |
---|
40 | FIND_PACKAGE_HANDLE_ADVANCED_ARGS(ALUT DEFAULT_MSG |
---|
41 | ALUT_LIBRARY_OPTIMIZED |
---|
42 | ALUT_INCLUDE_DIR |
---|
43 | ) |
---|
44 | |
---|
45 | # Collect optimized and debug libraries |
---|
46 | HANDLE_LIBRARY_TYPES(ALUT) |
---|
47 | |
---|
48 | MARK_AS_ADVANCED( |
---|
49 | ALUT_INCLUDE_DIR |
---|
50 | ALUT_LIBRARY_OPTIMIZED |
---|
51 | ALUT_LIBRARY_DEBUG |
---|
52 | ) |
---|