diff --git a/external/ObsPluginHelpers.cmake b/external/ObsPluginHelpers.cmake index 08e785a3..b7c3db6a 100644 --- a/external/ObsPluginHelpers.cmake +++ b/external/ObsPluginHelpers.cmake @@ -215,6 +215,12 @@ else() COMPONENT ${target}_Runtime NAMELINK_COMPONENT ${target}_Development) + if(OS_WINDOWS) + install(FILES + "$" DESTINATION "${OBS_PLUGIN_DESTINATION}" + OPTIONAL) + endif() + add_custom_command(TARGET ${target} POST_BUILD COMMAND "${CMAKE_COMMAND}" -E copy "$" @@ -225,7 +231,7 @@ else() add_custom_command(TARGET ${target} POST_BUILD COMMAND "${CMAKE_COMMAND}" -E "$,$>,copy,true>" "$" - "${OBS_OUTPUT_DIR}/$/${OBS_PLUGIN_DESTINATION}/" + "${OBS_OUTPUT_DIR}/$/${OBS_PLUGIN_DESTINATION}/$" VERBATIM) endif()