Changeset 2509 for code/branches/buildsystem2/cmake/FindALUT.cmake
- Timestamp:
- Dec 17, 2008, 8:59:48 PM (16 years ago)
- Location:
- code/branches/buildsystem2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2
- Property svn:ignore deleted
- Property svn:mergeinfo changed
/code/branches/buildsystem (added) merged: 1875,1882-1886,1975-1982,1991,1999,2054,2061,2135,2137-2139,2197-2199,2204,2214-2220,2223-2224,2229,2233-2244,2248-2249,2252-2253,2260,2275
-
code/branches/buildsystem2/cmake/FindALUT.cmake
r1872 r2509 18 18 # 19 19 # Several changes and additions by Fabian 'x3n' Landau 20 # Some simplifications by Adrian Friedli 20 21 # > www.orxonox.net < 21 22 22 IF (ALUT_LIBRARY AND ALUT_INCLUDE_DIR)23 SET (ALUT_FIND_QUIETLY TRUE)24 ENDIF (ALUT_LIBRARY AND ALUT_INCLUDE_DIR)25 26 23 FIND_PATH(ALUT_INCLUDE_DIR AL/alut.h 27 $ENV{ALUTDIR}/include 28 ~/Library/Frameworks/OpenAL.framework/Headers 29 /Library/Frameworks/OpenAL.framework/Headers 30 /System/Library/Frameworks/OpenAL.framework/Headers # Tiger 31 /usr/pack/openal-0.0.8-cl/include # Tardis specific hack 32 /usr/local/include/ 33 /usr/local/include/OpenAL 34 /usr/local/include 35 /usr/include/ 36 /usr/include/OpenAL 37 /usr/include 38 /sw/include/ # Fink 39 /sw/include/OpenAL 40 /sw/include 41 /opt/local/include/AL # DarwinPorts 42 /opt/local/include/OpenAL 43 /opt/local/include 44 /opt/csw/include/ # Blastwave 45 /opt/csw/include/OpenAL 46 /opt/csw/include 47 /opt/include/ 48 /opt/include/OpenAL 49 /opt/include 50 ../libs/freealut-1.1.0/include 51 ${DEPENDENCY_DIR}/freealut-1.1.0/include 24 PATHS 25 $ENV{ALUTDIR} 26 ~/Library/Frameworks/OpenAL.framework 27 /Library/Frameworks/OpenAL.framework 28 /System/Library/Frameworks/OpenAL.framework # Tiger 29 /usr/local 30 /usr 31 /sw # Fink 32 /opt/local # DarwinPorts 33 /opt/csw # Blastwave 34 /opt 35 PATH_SUFFIXES include include/OpenAL include/AL Headers 52 36 ) 53 37 … … 78 62 NAMES alut 79 63 PATHS 80 $ENV{ALUTDIR}/lib 81 $ENV{ALUTDIR}/libs 82 /usr/pack/openal-0.0.8-cl/i686-debian-linux3.1/lib 83 /usr/local/lib 84 /usr/lib 85 /sw/lib 86 /opt/local/lib 87 /opt/csw/lib 88 /opt/lib 89 ../libs/freealut-1.1.0/src/.libs 90 ../libs/freealut-1.1.0/lib 91 ${DEPENDENCY_DIR}/freealut-1.1.0/lib 64 $ENV{ALUTDIR} 65 /usr/local 66 /usr 67 /sw 68 /opt/local 69 /opt/csw 70 /opt 71 PATH_SUFFIXES lib libs 92 72 ) 93 73 ENDIF(${ALUT_INCLUDE_DIR} MATCHES ".framework") 94 74 95 SET (ALUT_FOUND "NO") 96 IF (ALUT_LIBRARY AND ALUT_INCLUDE_DIR) 97 SET (ALUT_FOUND "YES") 98 IF (NOT ALUT_FIND_QUIETLY) 99 MESSAGE (STATUS "FreeAlut was found.") 100 IF (VERBOSE_FIND) 101 MESSAGE (STATUS " include path: ${ALUT_INCLUDE_DIR}") 102 MESSAGE (STATUS " library path: ${ALUT_LIBRARY}") 103 MESSAGE (STATUS " libraries: alut") 104 ENDIF (VERBOSE_FIND) 105 ENDIF (NOT ALUT_FIND_QUIETLY) 106 ELSE (ALUT_LIBRARY AND ALUT_INCLUDE_DIR) 107 IF (NOT ALUT_INCLUDE_DIR) 108 MESSAGE (SEND_ERROR "FreeAlut include path was not found.") 109 ENDIF (NOT ALUT_INCLUDE_DIR) 110 IF (NOT ALUT_LIBRARY) 111 MESSAGE (SEND_ERROR "FreeAlut library was not found.") 112 ENDIF (NOT ALUT_LIBRARY) 113 ENDIF (ALUT_LIBRARY AND ALUT_INCLUDE_DIR) 75 # handle the QUIETLY and REQUIRED arguments and set ALUT_FOUND to TRUE if 76 # all listed variables are TRUE 77 INCLUDE(FindPackageHandleStandardArgs) 78 FIND_PACKAGE_HANDLE_STANDARD_ARGS(ALUT DEFAULT_MSG ALUT_LIBRARY ALUT_INCLUDE_DIR) 114 79 115 80 MARK_AS_ADVANCED(ALUT_LIBRARY ALUT_INCLUDE_DIR)
Note: See TracChangeset
for help on using the changeset viewer.