init
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Close stale issues and PRs / stale (push) Successful in 13s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Close stale issues and PRs / stale (push) Successful in 13s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
This commit is contained in:
39
cmake/external/openal/CMakeLists.txt
vendored
Normal file
39
cmake/external/openal/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
# This file is part of Desktop App Toolkit,
|
||||
# a set of libraries for developing nice desktop applications.
|
||||
#
|
||||
# For license and copyright information please follow this link:
|
||||
# https://github.com/desktop-app/legal/blob/master/LEGAL
|
||||
|
||||
add_library(external_openal INTERFACE IMPORTED GLOBAL)
|
||||
add_library(desktop-app::external_openal ALIAS external_openal)
|
||||
|
||||
if (DESKTOP_APP_USE_PACKAGED OR LINUX)
|
||||
find_package(OpenAL REQUIRED CONFIG)
|
||||
target_link_libraries(external_openal INTERFACE OpenAL::OpenAL)
|
||||
return()
|
||||
elseif (WIN32)
|
||||
target_include_directories(external_openal SYSTEM
|
||||
INTERFACE
|
||||
${libs_loc}/openal-soft/include
|
||||
${libs_loc}/openal-soft/include/AL
|
||||
)
|
||||
target_link_libraries(external_openal
|
||||
INTERFACE
|
||||
${libs_loc}/openal-soft/build/$<IF:$<CONFIG:Debug>,Debug,RelWithDebInfo>/OpenAL32.lib
|
||||
)
|
||||
elseif (APPLE)
|
||||
target_include_directories(external_openal SYSTEM
|
||||
INTERFACE
|
||||
${libs_loc}/local/include
|
||||
${libs_loc}/local/include/AL
|
||||
)
|
||||
target_link_libraries(external_openal
|
||||
INTERFACE
|
||||
${libs_loc}/local/lib/libopenal.a
|
||||
)
|
||||
endif()
|
||||
|
||||
target_compile_definitions(external_openal
|
||||
INTERFACE
|
||||
AL_LIBTYPE_STATIC
|
||||
)
|
||||
Reference in New Issue
Block a user