rpcs3/3rdparty/OpenAL/CMakeLists.txt

12 lines
356 B
CMake
Raw Normal View History

2021-05-03 21:09:38 +00:00
# OpenAL
if (MSVC)
find_path(OPENAL_INCLUDE_DIR al.h PATHS include/)
find_library(OPENAL_LIBRARY OpenAL32 PATHS libs/Win64/)
2021-05-03 21:09:38 +00:00
else()
find_package(OpenAL REQUIRED)
endif()
add_library(3rdparty_openal INTERFACE)
target_include_directories(3rdparty_openal INTERFACE ${OPENAL_INCLUDE_DIR})
target_link_libraries(3rdparty_openal INTERFACE ${OPENAL_LIBRARY})