mirror of https://github.com/procxx/kepka.git
Adjust OpenAL detection on Linux systems
This commit is contained in:
parent
b9d1cd2908
commit
a67bd6e770
|
@ -27,9 +27,15 @@ set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
set(CMAKE_AUTOMOC ON)
|
set(CMAKE_AUTOMOC ON)
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
|
|
||||||
# Needs OpenAL-SOFT
|
if (LINUX)
|
||||||
# Install via `brew install openal-soft` and configure with cmake call from README.md
|
find_package(OpenAL REQUIRED)
|
||||||
find_package(OpenAL REQUIRED NO_MODULE)
|
else(LINUX)
|
||||||
|
# Needs OpenAL-SOFT
|
||||||
|
# Install via `brew install openal-soft` and configure with cmake call from README.md
|
||||||
|
find_package(OpenAL REQUIRED NO_MODULE)
|
||||||
|
set(OPENAL_LIBRARY OpenAL::OpenAL)
|
||||||
|
endif(LINUX)
|
||||||
|
|
||||||
find_package(ZLIB REQUIRED)
|
find_package(ZLIB REQUIRED)
|
||||||
find_package(FFmpeg REQUIRED)
|
find_package(FFmpeg REQUIRED)
|
||||||
find_package(Opus REQUIRED)
|
find_package(Opus REQUIRED)
|
||||||
|
|
|
@ -639,7 +639,7 @@ target_link_libraries(Telegram
|
||||||
Qt5::Network
|
Qt5::Network
|
||||||
Qt5::GuiPrivate
|
Qt5::GuiPrivate
|
||||||
tgvoip
|
tgvoip
|
||||||
OpenAL::OpenAL
|
${OPENAL_LIBRARY}
|
||||||
${FFMPEG_LIBRARIES}
|
${FFMPEG_LIBRARIES}
|
||||||
${ZLIB_LIBRARIES}
|
${ZLIB_LIBRARIES}
|
||||||
${SWRESAMPLE_LIBRARIES}
|
${SWRESAMPLE_LIBRARIES}
|
||||||
|
|
Loading…
Reference in New Issue