diff options
| author | 2016-12-16 11:35:55 -0500 | |
|---|---|---|
| committer | 2016-12-16 11:35:55 -0500 | |
| commit | d30d6f81aa2ef14a690d483c5b7e7487c71d1971 (patch) | |
| tree | 4626053321537e40007b8bcd8170bd91caadb99b /src/citra_qt | |
| parent | Merge pull request #2337 from lioncash/gdb (diff) | |
| parent | Modularized Qt and SDL file copying (diff) | |
| download | yuzu-d30d6f81aa2ef14a690d483c5b7e7487c71d1971.tar.gz yuzu-d30d6f81aa2ef14a690d483c5b7e7487c71d1971.tar.xz yuzu-d30d6f81aa2ef14a690d483c5b7e7487c71d1971.zip | |
Merge pull request #2303 from freiro/citra-qt_missing_sdl2_dll
Copy SDL2.dll when compiling citra-qt with msvc
Diffstat (limited to 'src/citra_qt')
| -rw-r--r-- | src/citra_qt/CMakeLists.txt | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/src/citra_qt/CMakeLists.txt b/src/citra_qt/CMakeLists.txt index a9dacd5f1..e1b3566bf 100644 --- a/src/citra_qt/CMakeLists.txt +++ b/src/citra_qt/CMakeLists.txt | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | set(CMAKE_AUTOMOC ON) | 1 | set(CMAKE_AUTOMOC ON) |
| 2 | set(CMAKE_INCLUDE_CURRENT_DIR ON) | 2 | set(CMAKE_INCLUDE_CURRENT_DIR ON) |
| 3 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules) | ||
| 3 | 4 | ||
| 4 | set(SRCS | 5 | set(SRCS |
| 5 | config.cpp | 6 | config.cpp |
| @@ -107,27 +108,9 @@ if(UNIX AND NOT APPLE) | |||
| 107 | install(TARGETS citra-qt RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") | 108 | install(TARGETS citra-qt RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") |
| 108 | endif() | 109 | endif() |
| 109 | 110 | ||
| 110 | if (Qt5_FOUND AND MSVC) | 111 | if (MSVC) |
| 111 | include(WindowsCopyFiles) | 112 | include(CopyCitraQt5Deps) |
| 112 | 113 | include(CopyCitraSDLDeps) | |
| 113 | set(Qt5_DLL_DIR "${Qt5_DIR}/../../../bin") | 114 | copy_citra_Qt5_deps(citra-qt) |
| 114 | set(Qt5_PLATFORMS_DIR "${Qt5_DIR}/../../../plugins/platforms/") | 115 | copy_citra_SDL_deps(citra-qt) |
| 115 | set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/") | ||
| 116 | set(PLATFORMS ${DLL_DEST}platforms/) | ||
| 117 | |||
| 118 | windows_copy_files(citra-qt ${Qt5_DLL_DIR} ${DLL_DEST} | ||
| 119 | icudt*.dll | ||
| 120 | icuin*.dll | ||
| 121 | icuuc*.dll | ||
| 122 | Qt5Core$<$<CONFIG:Debug>:d>.* | ||
| 123 | Qt5Gui$<$<CONFIG:Debug>:d>.* | ||
| 124 | Qt5OpenGL$<$<CONFIG:Debug>:d>.* | ||
| 125 | Qt5Widgets$<$<CONFIG:Debug>:d>.* | ||
| 126 | ) | ||
| 127 | windows_copy_files(citra-qt ${Qt5_PLATFORMS_DIR} ${PLATFORMS} qwindows$<$<CONFIG:Debug>:d>.*) | ||
| 128 | |||
| 129 | unset(Qt5_DLL_DIR) | ||
| 130 | unset(Qt5_PLATFORMS_DIR) | ||
| 131 | unset(DLL_DEST) | ||
| 132 | unset(PLATFORMS) | ||
| 133 | endif() | 116 | endif() |