diff --git a/testbed/CMakeLists.txt b/testbed/CMakeLists.txt index 3af78d9e..ff1ad9bb 100644 --- a/testbed/CMakeLists.txt +++ b/testbed/CMakeLists.txt @@ -89,6 +89,12 @@ SET(SCENES_SOURCES scenes/concavemesh/ConcaveMeshScene.cpp ) +# Add .user file to set debug path in Visual Studio +SET(USER_FILE testbed.vcxproj.user) +SET(VS_USERFILE_WORKING_DIRECTORY_DEBUG ${EXECUTABLE_OUTPUT_PATH}) +SET(OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/${USER_FILE}) +CONFIGURE_FILE(VisualStudioUserTemplate.user ${USER_FILE} @ONLY) + # Create the executable ADD_EXECUTABLE(testbed ${TESTBED_SOURCES} ${SCENES_SOURCES} ${COMMON_SOURCES} ${IMGUI_SOURCES}) diff --git a/testbed/VisualStudioUserTemplate.user b/testbed/VisualStudioUserTemplate.user new file mode 100644 index 00000000..c8ed99c7 --- /dev/null +++ b/testbed/VisualStudioUserTemplate.user @@ -0,0 +1,19 @@ + + + + @VS_USERFILE_WORKING_DIRECTORY_DEBUG@ + WindowsLocalDebugger + + + @VS_USERFILE_WORKING_DIRECTORY_DEBUG@ + WindowsLocalDebugger + + + @VS_USERFILE_WORKING_DIRECTORY_DEBUG@ + WindowsLocalDebugger + + + @VS_USERFILE_WORKING_DIRECTORY_DEBUG@ + WindowsLocalDebugger + +