diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index 316597487..6cec6ab0e 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -180,12 +180,17 @@ macro(createPackage) # Install binaries directly in the prefix, usually C:\Program Files\ImHex. set(CMAKE_INSTALL_BINDIR ".") + set(PLUGIN_TARGET_FILES "") + foreach (plugin IN LISTS PLUGINS) + list(APPEND PLUGIN_TARGET_FILES "$") + endforeach () + # Grab all dynamically linked dependencies. - INSTALL(CODE "set(CMAKE_INSTALL_BINDIR \"${CMAKE_INSTALL_BINDIR}\")") - INSTALL(CODE "LIST(APPEND DEP_FOLDERS \${PY_PARENT})") + install(CODE "set(CMAKE_INSTALL_BINDIR \"${CMAKE_INSTALL_BINDIR}\")") + install(CODE "set(PLUGIN_TARGET_FILES \"${PLUGIN_TARGET_FILES}\")") install(CODE [[ file(GET_RUNTIME_DEPENDENCIES - EXECUTABLES $ $ $ + EXECUTABLES ${PLUGIN_TARGET_FILES} $ $ RESOLVED_DEPENDENCIES_VAR _r_deps UNRESOLVED_DEPENDENCIES_VAR _u_deps CONFLICTING_DEPENDENCIES_PREFIX _c_deps