diff options
| author | 2016-12-11 15:10:21 +0100 | |
|---|---|---|
| committer | 2016-12-11 15:10:21 +0100 | |
| commit | 942f70951d4d52417ff7c8eb6e7638a59ebc0461 (patch) | |
| tree | 99f9a4574cc56f1817781d3df5b0624053d663f5 /src | |
| parent | [MSVC] Copy SDL2.dll to build folder (diff) | |
| download | yuzu-942f70951d4d52417ff7c8eb6e7638a59ebc0461.tar.gz yuzu-942f70951d4d52417ff7c8eb6e7638a59ebc0461.tar.xz yuzu-942f70951d4d52417ff7c8eb6e7638a59ebc0461.zip | |
Removed redundant Qt check and other fixes
This removes a redundant check and moves part of the code to a separate
function.
Diffstat (limited to 'src')
| -rw-r--r-- | src/citra_qt/CMakeLists.txt | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/src/citra_qt/CMakeLists.txt b/src/citra_qt/CMakeLists.txt index 495a9d780..f283545aa 100644 --- a/src/citra_qt/CMakeLists.txt +++ b/src/citra_qt/CMakeLists.txt | |||
| @@ -107,27 +107,26 @@ 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 (MSVC) | 110 | function(copy_msvc_libraries) |
| 111 | include(WindowsCopyFiles) | 111 | include(WindowsCopyFiles) |
| 112 | set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/") | 112 | set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/") |
| 113 | windows_copy_files(citra-qt ${SDL2_DLL_DIR} ${DLL_DEST} SDL2.dll) | 113 | windows_copy_files(citra-qt ${SDL2_DLL_DIR} ${DLL_DEST} SDL2.dll) |
| 114 | if (Qt5_FOUND) | 114 | |
| 115 | set(Qt5_DLL_DIR "${Qt5_DIR}/../../../bin") | 115 | set(Qt5_DLL_DIR "${Qt5_DIR}/../../../bin") |
| 116 | set(Qt5_PLATFORMS_DIR "${Qt5_DIR}/../../../plugins/platforms/") | 116 | set(Qt5_PLATFORMS_DIR "${Qt5_DIR}/../../../plugins/platforms/") |
| 117 | set(PLATFORMS ${DLL_DEST}platforms/) | 117 | set(PLATFORMS ${DLL_DEST}platforms/) |
| 118 | windows_copy_files(citra-qt ${Qt5_DLL_DIR} ${DLL_DEST} | 118 | windows_copy_files(citra-qt ${Qt5_DLL_DIR} ${DLL_DEST} |
| 119 | icudt*.dll | 119 | icudt*.dll |
| 120 | icuin*.dll | 120 | icuin*.dll |
| 121 | icuuc*.dll | 121 | icuuc*.dll |
| 122 | Qt5Core$<$<CONFIG:Debug>:d>.* | 122 | Qt5Core$<$<CONFIG:Debug>:d>.* |
| 123 | Qt5Gui$<$<CONFIG:Debug>:d>.* | 123 | Qt5Gui$<$<CONFIG:Debug>:d>.* |
| 124 | Qt5OpenGL$<$<CONFIG:Debug>:d>.* | 124 | Qt5OpenGL$<$<CONFIG:Debug>:d>.* |
| 125 | Qt5Widgets$<$<CONFIG:Debug>:d>.* | 125 | Qt5Widgets$<$<CONFIG:Debug>:d>.* |
| 126 | ) | 126 | ) |
| 127 | windows_copy_files(citra-qt ${Qt5_PLATFORMS_DIR} ${PLATFORMS} qwindows$<$<CONFIG:Debug>:d>.*) | 127 | windows_copy_files(citra-qt ${Qt5_PLATFORMS_DIR} ${PLATFORMS} qwindows$<$<CONFIG:Debug>:d>.*) |
| 128 | unset(Qt5_DLL_DIR) | 128 | endfunction(copy_msvc_libraries) |
| 129 | unset(Qt5_PLATFORMS_DIR) | 129 | |
| 130 | unset(PLATFORMS) | 130 | if (MSVC) |
| 131 | endif() | 131 | copy_msvc_libraries() |
| 132 | unset(DLL_DEST) | ||
| 133 | endif() | 132 | endif() |