Files
CMake/Tests/RunCMake/VS10Project/VsDebuggerCommand.cmake
Nils Gladitz 22b43b0009 VS: Add support for VS_DEBUGGER_* properties on custom targets
Visual studio itself supports the corresponding `LocalDebugger*`
properties on utility targets; support generating them from CMake as
well.
2019-01-16 10:21:01 -05:00

7 lines
186 B
CMake

enable_language(CXX)
add_library(foo foo.cpp)
add_custom_target(bar)
set_target_properties(foo bar PROPERTIES
VS_DEBUGGER_COMMAND "my-debugger-command $<TARGET_PROPERTY:foo,NAME>")