Skip to content

Commit

Permalink
Set VS project settings for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorisano committed Sep 25, 2022
1 parent 9f96fb2 commit 05e8273
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cmake/ObsPluginHelpers.cmake
Expand Up @@ -639,6 +639,23 @@ else()
${CMAKE_CURRENT_BINARY_DIR}/cmake_install.cmake
COMMENT "Installing to plugin rundir"
VERBATIM)

# Deploy plugin for debug
add_custom_command(
TARGET ${target}
POST_BUILD
COMMAND copy C:\\projects\\obs-freetype-plugin\\build\\rundir\\Debug\\obs-plugins\\64bit\\* C:\\projects\\obs-build\\rundir\\Debug\\obs-plugins\\64bit
)

# Set "Configuration Properties > Debugging > Command / Working Direcotyr" for debug
set_target_properties(
${target}
PROPERTIES
VS_DEBUGGER_COMMAND
C:\\projects\\obs-build\\rundir\\Debug\\bin\\64bit\\obs64.exe
VS_DEBUGGER_WORKING_DIRECTORY
C:\\projects\\obs-build\\rundir\\Debug\\bin\\64bit
)
endfunction()

# Helper function to add resources from "data" directory
Expand Down

0 comments on commit 05e8273

Please sign in to comment.