2021-05-03 21:09:38 +00:00
|
|
|
# OpenAL
|
2024-05-02 11:53:18 +00:00
|
|
|
if(USE_SYSTEM_OPENAL)
|
2024-11-12 00:37:09 +00:00
|
|
|
if(WIN32)
|
|
|
|
find_package(OpenAL CONFIG REQUIRED)
|
|
|
|
else()
|
|
|
|
find_package(OpenAL REQUIRED)
|
|
|
|
endif()
|
|
|
|
add_library(3rdparty_openal INTERFACE)
|
|
|
|
target_link_libraries(3rdparty_openal INTERFACE OpenAL::OpenAL)
|
|
|
|
set_target_properties(OpenAL::OpenAL PROPERTIES IMPORTED_GLOBAL ON)
|
2024-05-02 11:53:18 +00:00
|
|
|
else()
|
2024-11-12 00:37:09 +00:00
|
|
|
option(ALSOFT_UTILS "Build utility programs" OFF)
|
|
|
|
option(ALSOFT_EXAMPLES "Build example programs" OFF)
|
|
|
|
add_subdirectory(openal-soft EXCLUDE_FROM_ALL)
|
|
|
|
add_library(3rdparty_openal INTERFACE)
|
|
|
|
target_link_libraries(3rdparty_openal INTERFACE OpenAL::OpenAL)
|
2021-05-03 21:09:38 +00:00
|
|
|
endif()
|