2021-12-18 19:23:14 -05:00
|
|
|
workspace "Nova"
|
|
|
|
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-18 20:00:32 -05:00
|
|
|
pchsource "src/navpch.cpp"
|
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"
|
|
|
|
}
|
|
|
|
|
|
|
|
includedirs {
|
2021-12-18 20:00:32 -05:00
|
|
|
"%{prj.name}/src/",
|
|
|
|
"%{prj.name}/vendor/spdlog/include/",
|
2021-12-18 19:23:14 -05:00
|
|
|
"%{IncludeDirs.glfw}",
|
|
|
|
"%{IncludeDirs.ImGui}",
|
|
|
|
}
|
|
|
|
|
|
|
|
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"
|