123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- set(ALUT_ROOT_DIR
- "${ALUT_ROOT_DIR}"
- CACHE
- PATH
- "Path to search for ALUT library")
-
-
- if(NOT "$ENV{OPENALDIR}" STREQUAL "")
- if(NOT ALUT_ROOT_DIR)
- set(ALUT_ROOT_DIR "$ENV{OPENALDIR}")
- endif()
- else()
- if(ALUT_ROOT_DIR)
- set(ENV{OPENALDIR} "${ALUT_ROOT_DIR}")
- endif()
- endif()
-
-
-
-
-
-
- find_path(ALUT_INCLUDE_DIR
- NAMES
- alut.h
- HINTS
- "${ALUT_ROOT_DIR}"
- PATH_SUFFIXES
- AL
- alut
- OpenAL
- include
- include/alut
- include/freealut
- include/AL
- include/OpenAL
- PATHS
- /usr/local
- /opt/local
- /sw)
- mark_as_advanced(ALUT_INCLUDE_DIR)
-
- find_library(ALUT_LIBRARY
- NAMES
- alut
- HINTS
- "${ALUT_ROOT_DIR}"
- PATH_SUFFIXES
- lib
- lib64
- PATHS
- /usr/local
- /opt/local
- /sw)
- mark_as_advanced(ALUT_LIBRARY)
-
-
-
-
-
-
-
-
-
-
- find_package(OpenAL QUIET)
-
-
-
- include(FindPackageHandleStandardArgs)
- find_package_handle_standard_args(ALUT
- DEFAULT_MSG
- ALUT_LIBRARY
- ALUT_INCLUDE_DIR
- OPENAL_FOUND)
-
- if(ALUT_FOUND)
- set(ALUT_INCLUDE_DIRS "${OPENAL_INCLUDE_DIR}" "${ALUT_INCLUDE_DIR}")
- set(ALUT_LIBRARIES "${OPENAL_LIBRARY}" ${ALUT_LIBRARY})
- if(APPLE)
- get_filename_component(_moddir ${CMAKE_CURRENT_LIST_FILE} PATH)
- if("${OPENAL_INCLUDE_DIR}" MATCHES "\\.framework$")
-
- set(OPENAL_WORKAROUND_INCLUDE_DIR
- "${_moddir}/workarounds/mac-openal")
- list(APPEND
- ALUT_WORKAROUND_INCLUDE_DIRS
- "${OPENAL_WORKAROUND_INCLUDE_DIR}")
- endif()
- if("${ALUT_INCLUDE_DIR}" MATCHES "\\.framework$")
-
- set(ALUT_WORKAROUND_INCLUDE_DIR
- "${_moddir}/workarounds/mac-alut-framework")
- list(APPEND
- ALUT_WORKAROUND_INCLUDE_DIRS
- "${ALUT_WORKAROUND_INCLUDE_DIR}")
- endif()
- endif()
-
- if("${ALUT_INCLUDE_DIR}" MATCHES "AL$")
- get_filename_component(_parent "${ALUT_INCLUDE_DIR}/.." ABSOLUTE)
- list(APPEND ALUT_INCLUDE_DIRS "${_parent}")
- endif()
- mark_as_advanced(ALUT_ROOT_DIR)
- endif()
|