DFHack / dfhack

Memory hacking library for Dwarf Fortress and a set of tools that use it
Other
1.86k stars 468 forks source link

set debug command and working directory in vs solution #2628

Open ab9rf opened 1 year ago

ab9rf commented 1 year ago

it would be helpful to have the solution created by cmake set the project debug command to $DF_PATH\Dwarf Fortress.exe and debug working directory to $DF_PATH, since this facilitates debugging DF/DFHack directly from visual studio. as it is, i have to manually update this whenever i regenerate a clean build tree, which is slightly annoying

ab9rf commented 1 year ago

i dug around this for a while, it seems i can set these properties on any of the specifically defined targets (like, say, dfhack) but setting in on ALL_BUILD (which is the target vs uses for launching the debugger) is not possible in cmake without modifying cmake itself. bleah

will keep digging

ab9rf commented 1 year ago

it looks like changing the startup project to be dfhack instead of ALL_BUILD (the default) will accomplish the desired result, but there may be other consequences to doing this