cmake : copy sdl3.dll to directory where exe exists (since sdl3 is shared library)

This commit is contained in:
georgemoralis 2023-05-10 22:22:46 +03:00
parent f2198ef27d
commit 45420b340e
1 changed files with 6 additions and 1 deletions

View File

@ -31,3 +31,8 @@ add_executable(shadps4
find_package(OpenGL REQUIRED) find_package(OpenGL REQUIRED)
target_link_libraries(shadps4 PUBLIC fmt spdlog IMGUI SDL3-shared ${OPENGL_LIBRARY}) 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
$<TARGET_FILE:SDL3-shared>
$<TARGET_FILE_DIR:shadps4>)