From f29709105f59e7a23252242921533d596a5652c6 Mon Sep 17 00:00:00 2001 From: scribam Date: Sun, 24 Nov 2019 10:18:10 +0100 Subject: [PATCH] cmake: Add post-build commands for Windows --- rpcs3/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpcs3/CMakeLists.txt b/rpcs3/CMakeLists.txt index 0c5baa6a3b..0c2bb89498 100644 --- a/rpcs3/CMakeLists.txt +++ b/rpcs3/CMakeLists.txt @@ -118,6 +118,10 @@ elseif(UNIX) add_custom_command(TARGET rpcs3 POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/bin/Icons $/Icons) +elseif(WIN32) + add_custom_command(TARGET rpcs3 POST_BUILD + COMMAND "${CMAKE_COMMAND}" -E copy_directory "${CMAKE_SOURCE_DIR}/bin" "$" + COMMAND "${Qt5_DIR}/../../../bin/windeployqt" --no-angle --no-compiler-runtime --no-opengl-sw --no-patchqt --no-svg --no-translations --no-quick --plugindir "$/qt/plugins" "$") endif() # Unix installation