CMake: Set Visual Studio working directory

Use the executable output directory for samples and demos, use the source directory for tests.
This commit is contained in:
Maarten Bent
2018-01-10 22:56:42 +01:00
parent db86112675
commit 21615b1634
2 changed files with 9 additions and 0 deletions

View File

@@ -38,6 +38,9 @@ function(wx_add_demo name)
target_link_libraries(${DEMO_NAME} core ${DEMO_LIBRARIES})
wx_set_common_target_properties(${DEMO_NAME})
set_target_properties(${DEMO_NAME} PROPERTIES FOLDER "Demos")
set_target_properties(${DEMO_NAME} PROPERTIES
VS_DEBUGGER_WORKING_DIRECTORY "${wxOUTPUT_DIR}/${wxCOMPILER_PREFIX}${wxARCH_SUFFIX}_${lib_suffix}"
)
endfunction()
wx_add_demo(bombs