mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 11:22:21 -06:00
Visual studio itself supports the corresponding `LocalDebugger*` properties on utility targets; support generating them from CMake as well.
7 lines
186 B
CMake
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>")
|