aboutsummaryrefslogtreecommitdiff
path: root/CMakeModules/CopyYuzuSDLDeps.cmake
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2018-01-13 22:14:04 +0000
committerMerryMage <MerryMage@users.noreply.github.com>2018-01-13 22:38:52 +0000
commite86bdb16019be278974fcab75255ae37cc600747 (patch)
treee1e8628e276bd3c5044278e495da67236b0d765d /CMakeModules/CopyYuzuSDLDeps.cmake
parentf95789a0b3f881a17d854534244ad380389d0cb1 (diff)
Fix build on macOS and linux
Diffstat (limited to 'CMakeModules/CopyYuzuSDLDeps.cmake')
-rw-r--r--CMakeModules/CopyYuzuSDLDeps.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeModules/CopyYuzuSDLDeps.cmake b/CMakeModules/CopyYuzuSDLDeps.cmake
new file mode 100644
index 000000000..5963684f4
--- /dev/null
+++ b/CMakeModules/CopyYuzuSDLDeps.cmake
@@ -0,0 +1,5 @@
+function(copy_yuzu_SDL_deps target_dir)
+ include(WindowsCopyFiles)
+ set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/")
+ windows_copy_files(${target_dir} ${SDL2_DLL_DIR} ${DLL_DEST} SDL2.dll)
+endfunction(copy_yuzu_SDL_deps)