cmake: copy DLL dependencies to output path

This also copies SDL3.dll from an external path when using system
dependencies.
This commit is contained in:
Anonymous Maarten 2024-06-26 15:42:47 +02:00
parent 659a54b221
commit 5a5834f5c1

View File

@ -482,6 +482,10 @@ if (ISLE_BUILD_APP)
ISLE/res/isle.rc
ISLE/isleapp.cpp
)
add_custom_command(TARGET isle POST_BUILD
COMMAND "${CMAKE_COMMAND}" -E copy $<TARGET_RUNTIME_DLLS:isle> "$<TARGET_FILE_DIR:isle>"
COMMAND_EXPAND_LISTS
)
target_compile_definitions(isle PRIVATE ISLE_APP)