2021-12-19 12:58:03 -05:00
|
|
|
workspace "Navigator"
|
2021-12-18 19:23:14 -05:00
|
|
|
architecture "x64"
|
|
|
|
configurations {
|
|
|
|
"Debug",
|
|
|
|
"Release"
|
|
|
|
}
|
|
|
|
startproject "NavProject"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
|
|
|
|
-- External directories to be included
|
|
|
|
IncludeDirs ={}
|
2021-12-18 20:00:32 -05:00
|
|
|
IncludeDirs["glfw"] = "Navigator/vendor/glfw/include"
|
|
|
|
IncludeDirs["ImGui"] = "Navigator/vendor/imgui"
|
2021-12-18 19:23:14 -05:00
|
|
|
|
2021-12-18 20:00:32 -05:00
|
|
|
include "Navigator/vendor/glfw"
|
|
|
|
include "Navigator/vendor/imgui"
|
2021-12-18 19:23:14 -05:00
|
|
|
project "Navigator"
|
2021-12-18 20:00:32 -05:00
|
|
|
location "Navigator"
|
2021-12-18 19:23:14 -05:00
|
|
|
kind "StaticLib"
|
|
|
|
language "C++"
|
|
|
|
cppdialect "C++17"
|
|
|
|
staticruntime "on"
|
|
|
|
targetdir ("lib/" .. outputdir .. "/%{prj.name}")
|
|
|
|
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
|
|
|
|
pchheader "navpch.h"
|
2021-12-19 12:58:03 -05:00
|
|
|
pchsource "Navigator/src/navpch.cpp"
|
|
|
|
|
|
|
|
filter "system:windows"
|
|
|
|
defines "NAV_WINDOWS"
|
|
|
|
forceincludes {"navpch.h"}
|
|
|
|
includedirs {
|
|
|
|
"%{prj.name}/src/",
|
|
|
|
"%{prj.name}/vendor/spdlog/include/",
|
|
|
|
"%{IncludeDirs.glfw}",
|
|
|
|
"%{IncludeDirs.ImGui}",
|
|
|
|
}
|
|
|
|
filter "system:linux or macosx"
|
|
|
|
defines "NAV_UNIX"
|
|
|
|
defines "NAV_PCH"
|
|
|
|
includedirs {
|
|
|
|
"%{prj.name}/vendor/spdlog/include/",
|
|
|
|
"%{IncludeDirs.glfw}",
|
|
|
|
"%{IncludeDirs.ImGui}",
|
|
|
|
}
|
|
|
|
filter {}
|
2021-12-18 19:23:14 -05:00
|
|
|
|
|
|
|
files {
|
2021-12-18 20:00:32 -05:00
|
|
|
"%{prj.name}/src/**.h",
|
|
|
|
"%{prj.name}/src/**.cpp"
|
2021-12-18 19:23:14 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
defines {
|
|
|
|
"_CRT_SECURE_NO_WARNINGS"
|
|
|
|
}
|
|
|
|
|
|
|
|
links {
|
|
|
|
"GLFW",
|
|
|
|
"ImGui",
|
|
|
|
"opengl32.lib"
|
|
|
|
}
|
|
|
|
|
|
|
|
systemversion "latest"
|
|
|
|
|
|
|
|
defines {
|
|
|
|
"GLFW_INCLUDE_NONE"
|
|
|
|
}
|
|
|
|
|
|
|
|
filter "configurations:Debug"
|
|
|
|
defines "NAV_DEBUG"
|
|
|
|
runtime "Debug"
|
|
|
|
symbols "on"
|
|
|
|
|
|
|
|
filter "configurations:Release"
|
|
|
|
defines "NAV_RELEASE"
|
|
|
|
runtime "Release"
|
|
|
|
optimize "on"
|
|
|
|
|
|
|
|
project "NavProject"
|
2021-12-18 20:00:32 -05:00
|
|
|
location "NavProject"
|
2021-12-18 19:23:14 -05:00
|
|
|
kind "ConsoleApp"
|
|
|
|
language "C++"
|
|
|
|
cppdialect "C++17"
|
|
|
|
staticruntime "on"
|
|
|
|
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
|
|
|
|
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
|
|
|
|
|
|
|
|
files {
|
2021-12-18 20:00:32 -05:00
|
|
|
"NavProject/main.cpp"
|
2021-12-18 19:23:14 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
includedirs {
|
2021-12-18 20:00:32 -05:00
|
|
|
"Navigator/src",
|
|
|
|
"Navigator/vendor/spdlog/include/",
|
|
|
|
"Navigator/vendor"
|
2021-12-18 19:23:14 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
links {
|
|
|
|
"Navigator"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
systemversion "latest"
|
|
|
|
|
|
|
|
filter "configurations:Debug"
|
|
|
|
defines "NAV_DEBUG"
|
|
|
|
runtime "Debug"
|
|
|
|
symbols "on"
|
|
|
|
|
|
|
|
filter "configurations:Release"
|
|
|
|
defines "NAV_RELEASE"
|
|
|
|
runtime "Release"
|
|
|
|
optimize "on"
|
|
|
|
|
|
|
|
filter "configurations:Dist"
|
|
|
|
defines "NAV_DIST"
|
|
|
|
runtime "Release"
|
|
|
|
optimize "on"
|