Examples: Set startup folder for debugging in Visual Studio

This commit is contained in:
Mario Liebisch 2018-02-05 21:56:32 +01:00 committed by Lukas Dürrenberger
parent 9bdd6d46dd
commit 2cd4797557

View File

@ -217,6 +217,9 @@ macro(sfml_add_example target)
# set the target flags to use the appropriate C++ standard library
sfml_set_stdlib(${target})
# set the Visual Studio startup path for debugging
set_target_properties(${target} PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
# link the target to its SFML dependencies
if(THIS_DEPENDS)
target_link_libraries(${target} PRIVATE ${THIS_DEPENDS})