SHADE_Y3/SHADE_Engine/premake5.lua

71 lines
1.4 KiB
Lua

project "SHADE_Engine"
kind "StaticLib"
language "C++"
cppdialect "C++latest"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
systemversion "latest"
pchheader "SHpch.h"
pchsource "%{prj.location}/src/SHpch.cpp"
staticruntime "on"
files
{
"%{prj.location}/src/**.h",
"%{prj.location}/src/**.c",
"%{prj.location}/src/**.cpp",
"%{prj.location}/src/**.glsl",
"%{wks.location}/Dependencies/stb_image/**.cpp"
}
includedirs
{
"%{prj.location}/src",
"%{IncludeDir.assimp}",
"%{IncludeDir.imgui}",
"%{IncludeDir.imguizmo}",
"%{IncludeDir.imnodes}",
"%{IncludeDir.msdf_atlas_gen}",
"%{IncludeDir.msdfgen}",
"%{IncludeDir.spdlog}",
"%{IncludeDir.stb}",
"%{IncludeDir.tracy}",
"%{IncludeDir.VMA}",
"%{IncludeDir.yamlcpp}",
}
libdirs
{
"%{prj.location}/libs"
}
links
{
"yamlcpp",
"msdfgen",
"msdf-atlas-gen"
}
defines
{
"_LIB",
"_GLFW_INCLUDE_NONE",
"MSDFGEN_USE_CPP11"
}
flags
{
"MultiProcessorCompile"
}
warnings 'Extra'
filter "configurations:Debug"
symbols "On"
defines {"_DEBUG"}
links{"fmodstudioL_vc.lib", "fmodL_vc.lib"}
filter "configurations:Release"
optimize "On"
defines{"_RELEASE"}
links{"fmodstudio_vc.lib", "fmod_vc.lib"}