OPENAL.cmake
上传用户:king477883
上传日期:2021-03-01
资源大小:9553k
文件大小:1k
- # -*- cmake -*-
- include(Linking)
- include(Prebuilt)
- if (LINUX)
- set(OPENAL ON CACHE BOOL "Enable OpenAL")
- else (LINUX)
- set(OPENAL OFF CACHE BOOL "Enable OpenAL")
- endif (LINUX)
- if (OPENAL)
- if (STANDALONE)
- include(FindPkgConfig)
- include(FindOpenAL)
- pkg_check_modules(OPENAL_LIB REQUIRED openal)
- pkg_check_modules(FREEALUT_LIB REQUIRED freealut)
- else (STANDALONE)
- use_prebuilt_binary(openal-soft)
- endif (STANDALONE)
- set(OPENAL_LIBRARIES
- openal
- alut
- )
- endif (OPENAL)
- if (OPENAL)
- message(STATUS "Building with OpenAL audio support")
- endif (OPENAL)