1 2 3 4 5 6 7 8 9 10 11 12 13 14
# -*- cmake -*- set(OPENAL ON CACHE BOOL "Enable OpenAL") if (OPENAL) include(FindPkgConfig) pkg_check_modules(OPENAL_LIB REQUIRED openal) pkg_check_modules(FREEAULT_LIB REQUIRED freealut) set(OPENAL_LIBRARIES openal alut ) endif (OPENAL)