mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 11:22:45 +01:00
18 lines
461 B
CMake
18 lines
461 B
CMake
# Override CMake's FindOpenAL module:
|
|
# - create a OpenAL::OpenAL target
|
|
|
|
include("${CMAKE_ROOT}/Modules/FindOpenAL.cmake")
|
|
|
|
if(OPENAL_FOUND AND NOT TARGET OpenAL::OpenAL)
|
|
add_library(OpenAL INTERFACE)
|
|
target_link_libraries(OpenAL
|
|
INTERFACE
|
|
"${OPENAL_LIBRARY}"
|
|
)
|
|
target_include_directories(OpenAL SYSTEM
|
|
INTERFACE
|
|
"${OPENAL_INCLUDE_DIR}"
|
|
)
|
|
add_library(OpenAL::OpenAL ALIAS OpenAL)
|
|
endif()
|