CMakeLists: Copy LICENSE files when building for Steam Runtime

This commit is contained in:
OatmealDome 2023-01-10 23:21:00 -05:00
parent fff13c385f
commit 5c80a9fd87
1 changed files with 1 additions and 0 deletions

View File

@ -644,6 +644,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND STEAM)
add_custom_command(TARGET dolphin-emu POST_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lib"
COMMAND cp "${QT_DIR}/../../LICENSE.*" "${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" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/plugins"
)