From 3e754067832930fe03d7433304a2802d2647d208 Mon Sep 17 00:00:00 2001 From: Nigel Barink Date: Thu, 3 Nov 2022 10:42:57 +0100 Subject: [PATCH] Adding ImGuizmo submodule --- .gitmodules | 3 +++ BarinkEngine/premake5.lua | 1 + ImGuizmo/premake5.lua | 19 +++++++++++++++++++ libs/guizmo | 1 + premake5.lua | 2 +- 5 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 ImGuizmo/premake5.lua create mode 160000 libs/guizmo diff --git a/.gitmodules b/.gitmodules index 4d64e93..6679e3d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -31,3 +31,6 @@ [submodule "libs/entt"] path = libs/entt url = https://github.com/skypjack/entt.git +[submodule "libs/guizmo"] + path = libs/guizmo + url = https://github.com/CedricGuillemet/ImGuizmo.git diff --git a/BarinkEngine/premake5.lua b/BarinkEngine/premake5.lua index 648fc88..166e39a 100644 --- a/BarinkEngine/premake5.lua +++ b/BarinkEngine/premake5.lua @@ -60,3 +60,4 @@ project "BarinkEngine" } include('../ImGui') +include("../ImGuizmo") \ No newline at end of file diff --git a/ImGuizmo/premake5.lua b/ImGuizmo/premake5.lua new file mode 100644 index 0000000..415d28d --- /dev/null +++ b/ImGuizmo/premake5.lua @@ -0,0 +1,19 @@ +project "ImGuizmo" + kind "StaticLib" + + includedirs { + "../libs/glfw/include", + "../libs/ImGui", + "../libs/guizmo" + } + + files { + "../libs/guizmo/*.cpp", + } + + libdirs{ + "../libs/ImGui", + "../libs/glad" + } + + include("../ImGui") \ No newline at end of file diff --git a/libs/guizmo b/libs/guizmo new file mode 160000 index 0000000..664cf2d --- /dev/null +++ b/libs/guizmo @@ -0,0 +1 @@ +Subproject commit 664cf2d73864a36b2a8b5091d33fc4578c885eca diff --git a/premake5.lua b/premake5.lua index 3d03cf5..4661855 100644 --- a/premake5.lua +++ b/premake5.lua @@ -6,7 +6,7 @@ workspace "BarinkEngine" architecture "x86_64" targetdir "./%{prj.name}/build/%{cfg.buildcfg}" - objdir "./%{prj.name}/%{cfg.buildcfg}/intermediates/" + objdir "./%{prj.name}/build/%{cfg.buildcfg}/intermediates/" startproject("SandboxApp")