diff options
| -rw-r--r-- | src/citra_qt/CMakeLists.txt | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/citra_qt/CMakeLists.txt b/src/citra_qt/CMakeLists.txt index a9dacd5f1..495a9d780 100644 --- a/src/citra_qt/CMakeLists.txt +++ b/src/citra_qt/CMakeLists.txt | |||
| @@ -107,27 +107,27 @@ if(UNIX AND NOT APPLE) | |||
| 107 | install(TARGETS citra-qt RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") | 107 | install(TARGETS citra-qt RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") |
| 108 | endif() | 108 | endif() |
| 109 | 109 | ||
| 110 | if (Qt5_FOUND AND MSVC) | 110 | if (MSVC) |
| 111 | include(WindowsCopyFiles) | 111 | include(WindowsCopyFiles) |
| 112 | |||
| 113 | set(Qt5_DLL_DIR "${Qt5_DIR}/../../../bin") | ||
| 114 | set(Qt5_PLATFORMS_DIR "${Qt5_DIR}/../../../plugins/platforms/") | ||
| 115 | set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/") | 112 | set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/") |
| 116 | set(PLATFORMS ${DLL_DEST}platforms/) | 113 | windows_copy_files(citra-qt ${SDL2_DLL_DIR} ${DLL_DEST} SDL2.dll) |
| 117 | 114 | if (Qt5_FOUND) | |
| 118 | windows_copy_files(citra-qt ${Qt5_DLL_DIR} ${DLL_DEST} | 115 | set(Qt5_DLL_DIR "${Qt5_DIR}/../../../bin") |
| 119 | icudt*.dll | 116 | set(Qt5_PLATFORMS_DIR "${Qt5_DIR}/../../../plugins/platforms/") |
| 120 | icuin*.dll | 117 | set(PLATFORMS ${DLL_DEST}platforms/) |
| 121 | icuuc*.dll | 118 | windows_copy_files(citra-qt ${Qt5_DLL_DIR} ${DLL_DEST} |
| 122 | Qt5Core$<$<CONFIG:Debug>:d>.* | 119 | icudt*.dll |
| 123 | Qt5Gui$<$<CONFIG:Debug>:d>.* | 120 | icuin*.dll |
| 124 | Qt5OpenGL$<$<CONFIG:Debug>:d>.* | 121 | icuuc*.dll |
| 125 | Qt5Widgets$<$<CONFIG:Debug>:d>.* | 122 | Qt5Core$<$<CONFIG:Debug>:d>.* |
| 126 | ) | 123 | Qt5Gui$<$<CONFIG:Debug>:d>.* |
| 127 | windows_copy_files(citra-qt ${Qt5_PLATFORMS_DIR} ${PLATFORMS} qwindows$<$<CONFIG:Debug>:d>.*) | 124 | Qt5OpenGL$<$<CONFIG:Debug>:d>.* |
| 128 | 125 | Qt5Widgets$<$<CONFIG:Debug>:d>.* | |
| 129 | unset(Qt5_DLL_DIR) | 126 | ) |
| 130 | unset(Qt5_PLATFORMS_DIR) | 127 | windows_copy_files(citra-qt ${Qt5_PLATFORMS_DIR} ${PLATFORMS} qwindows$<$<CONFIG:Debug>:d>.*) |
| 128 | unset(Qt5_DLL_DIR) | ||
| 129 | unset(Qt5_PLATFORMS_DIR) | ||
| 130 | unset(PLATFORMS) | ||
| 131 | endif() | ||
| 131 | unset(DLL_DEST) | 132 | unset(DLL_DEST) |
| 132 | unset(PLATFORMS) | ||
| 133 | endif() | 133 | endif() |