Skip to content

Commit

Permalink
Add OpenAL to deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ext3h committed Jun 13, 2021
1 parent 8d0088b commit 3963e26
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,15 @@ get_target_property(NOESIS_DLL Noesis LOCATION)
list(APPEND RUNTIME_DLLS ${STEAM_DLL})
list(APPEND RUNTIME_DLLS ${NOESIS_DLL})

if(WIN32)
# Prebuilt SFML on Windows bundles OpenAL
get_filename_component(OPENAL_DLL "${SFML_DIR}" PATH)
get_filename_component(OPENAL_DLL "${OPENAL_DLL}" PATH)
get_filename_component(OPENAL_DLL "${OPENAL_DLL}" PATH)
set(OPENAL_DLL ${OPENAL_DLL}/bin/openal32.dll)
list(APPEND RUNTIME_DLLS ${OPENAL_DLL})
endif(WIN32)

install(
FILES
${RUNTIME_DLLS}
Expand Down

0 comments on commit 3963e26

Please sign in to comment.