mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 10:42:36 +01:00
18 lines
618 B
CMake
18 lines
618 B
CMake
# OpenAL
|
|
if(USE_SYSTEM_OPENAL)
|
|
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)
|
|
else()
|
|
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)
|
|
endif()
|