From 5a5834f5c1fc92a9936baca9a49beb9d4d50daa8 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Wed, 26 Jun 2024 15:42:47 +0200 Subject: [PATCH] cmake: copy DLL dependencies to output path This also copies SDL3.dll from an external path when using system dependencies. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d2fd5c7..ab49950a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 $ "$" + COMMAND_EXPAND_LISTS + ) target_compile_definitions(isle PRIVATE ISLE_APP)