From 77fb5fa7dcdd9b3bb1da82c2e5b40cdf05638de3 Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Sun, 20 Feb 2022 18:24:35 -0500 Subject: [PATCH] DolphinQt: Copy all Qt libraries into Binaries output folder on Steam builds for Linux --- Source/Core/DolphinQt/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Core/DolphinQt/CMakeLists.txt b/Source/Core/DolphinQt/CMakeLists.txt index 79e7105db6..25b2452aa2 100644 --- a/Source/Core/DolphinQt/CMakeLists.txt +++ b/Source/Core/DolphinQt/CMakeLists.txt @@ -620,6 +620,12 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND STEAM) BUILD_WITH_INSTALL_RPATH true INSTALL_RPATH "\$ORIGIN/lib" ) + + add_custom_command(TARGET dolphin-emu POST_BUILD + COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lib" + COMMAND cp -P "${QT_DIR}/../../*.so*" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lib" + COMMAND ${CMAKE_COMMAND} -E copy_directory "${QT_DIR}/../../../plugins/platforms" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/platforms" + ) endif() if(USE_MGBA)