From 45420b340e4a08466688f9e1549f937ca7b50caf Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Wed, 10 May 2023 22:22:46 +0300 Subject: [PATCH] cmake : copy sdl3.dll to directory where exe exists (since sdl3 is shared library) --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index daa293ae..edb5e4c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,4 +30,9 @@ add_executable(shadps4 find_package(OpenGL REQUIRED) -target_link_libraries(shadps4 PUBLIC fmt spdlog IMGUI SDL3-shared ${OPENGL_LIBRARY}) \ No newline at end of file +target_link_libraries(shadps4 PUBLIC fmt spdlog IMGUI SDL3-shared ${OPENGL_LIBRARY}) + +add_custom_command(TARGET shadps4 POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + $ + $) \ No newline at end of file