mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-24 12:25:00 +00:00
cmake : copy sdl3.dll to directory where exe exists (since sdl3 is shared library)
This commit is contained in:
parent
f2198ef27d
commit
45420b340e
1 changed files with 6 additions and 1 deletions
|
@ -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>)
|
Loading…
Add table
Add a link
Reference in a new issue