From 51a8f295a7a657fb6c4cf34c896b0c0d5f39d85c Mon Sep 17 00:00:00 2001
From: "samuel.hayden" <samuel.haydeb@fhr.frunhofer.de>
Date: Fri, 15 Mar 2024 13:18:01 +0100
Subject: [PATCH] Added post build command to copy .exe to bin folder

---
 premake5.lua | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/premake5.lua b/premake5.lua
index dd44b6d..b6b517d 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -19,8 +19,8 @@ project "LatticeDehomogenization"
     
     openmp "On"
 
-	targetdir ("bin/" .. outputdir .. "/%{prj.name}")
-	objdir ("bin/intermediates/" .. outputdir .. "/%{prj.name}")
+	targetdir ("binvs/" .. outputdir .. "/%{prj.name}")
+	objdir ("binvs/intermediates/" .. outputdir .. "/%{prj.name}")
 
 	files {
 		"%{prj.name}/src/**.h",
@@ -67,4 +67,7 @@ project "LatticeDehomogenization"
         runtime "Release"
         libdirs {
             "Dependancies/OCCT/lib-vc14/lib"
+        }
+        postbuildcommands { 
+            "{COPYFILE} %[binvs/" .. outputdir .. "/%{prj.name}/%{prj.name}.exe] %[bin/]"
         }
\ No newline at end of file
-- 
GitLab