From 34ba20188f57b2e5232c83532d907456c8cd7b2e Mon Sep 17 00:00:00 2001 From: williamistGitHub Date: Fri, 18 Oct 2024 17:19:44 -0400 Subject: [PATCH] fix running from vs --- ScuffedMinecraft/src/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ScuffedMinecraft/src/CMakeLists.txt b/ScuffedMinecraft/src/CMakeLists.txt index 8a9aaff..7f1e66e 100644 --- a/ScuffedMinecraft/src/CMakeLists.txt +++ b/ScuffedMinecraft/src/CMakeLists.txt @@ -2,6 +2,9 @@ add_executable(scuffed_mc Application.cpp Chunk.cpp Shader.cpp Block.cpp NoiseSettings.cpp SurfaceFeature.cpp Camera.cpp Planet.cpp WorldGen.cpp ../vendor/glad.c -) +) + +# make sure the program runs in the right place from visual studio +set_target_properties(scuffed_mc PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/bin") target_link_libraries(scuffed_mc imgui glfw3)