ModelCompiler/premake5.lua

74 lines
1.4 KiB
Lua
Raw Normal View History

2022-11-01 14:05:38 +08:00
AssimpInclude = "%{wks.location}\\Dependencies\\assimp"
2022-11-01 13:49:45 +08:00
project "ModelCompileLibrary"
kind "ConsoleApp"
language "C++"
cppdialect "C++20"
targetdir (outputdir)
objdir (interdir)
systemversion "latest"
files
{
"%{prj.location}/src/**.h",
"%{prj.location}/src/**.cpp",
}
externalincludedirs
{
2022-11-01 14:05:38 +08:00
"%{AssimpInclude}\\include"
2022-11-01 13:49:45 +08:00
}
includedirs
{
"%{prj.location}/src",
}
externalwarnings "Off"
2022-11-01 13:49:45 +08:00
libdirs
{
2022-11-01 14:05:38 +08:00
"%{AssimpInclude}/lib/Debug",
"%{AssimpInclude}/lib/Release"
2022-11-01 13:49:45 +08:00
}
flags
{
2022-11-01 13:49:45 +08:00
"MultiProcessorCompile"
}
2022-11-01 13:49:45 +08:00
filter "configurations:Debug"
postbuildcommands
{
2022-11-01 14:05:38 +08:00
"xcopy /r /y /q \"%{AssimpInclude}\\bin\\Debug\\assimp-vc142-mtd.dll\" \"$(OutDir)\""
2022-11-01 13:49:45 +08:00
}
filter "configurations:Release"
postbuildcommands
{
2022-11-01 14:05:38 +08:00
"xcopy /r /y /q \"%{AssimpInclude}\\bin\\Release\\assimp-vc142-mt.dll\" \"$(OutDir)\""
2022-11-01 13:49:45 +08:00
}
filter "configurations:Publish"
postbuildcommands
{
2022-11-01 14:05:38 +08:00
"xcopy /r /y /q \"%{AssimpInclude}\\bin\\Release\\assimp-vc142-mt.dll\" \"$(OutDir)\""
2022-11-01 13:49:45 +08:00
}
warnings 'Extra'
filter "configurations:Debug"
symbols "On"
defines {"_DEBUG"}
links{"assimp-vc142-mtd.lib"}
2022-11-01 13:49:45 +08:00
filter "configurations:Release"
optimize "On"
defines{"_RELEASE"}
links{"assimp-vc142-mt.lib"}
2022-11-01 13:49:45 +08:00
filter "configurations:Publish"
optimize "On"
defines{"_RELEASE, _PUBLISH"}
links{"assimp-vc142-mt.lib"}