2022-11-07 14:49:19 +08:00
|
|
|
AssimpInclude = "%{prj.location}\\Dependencies\\assimp"
|
2022-10-19 18:37:27 +08:00
|
|
|
|
2023-01-07 21:34:10 +08:00
|
|
|
-- outputdir = "%{wks.location}/bin/%{cfg.buildcfg}"
|
|
|
|
-- interdir = "%{wks.location}/bin_int"
|
|
|
|
-- workspace "ModelCompile"
|
|
|
|
-- architecture "x64"
|
|
|
|
-- configurations
|
|
|
|
-- {
|
|
|
|
-- "Release",
|
|
|
|
-- "Debug"
|
|
|
|
-- }
|
2022-11-02 21:10:44 +08:00
|
|
|
|
2022-11-04 14:41:07 +08:00
|
|
|
project "ModelCompiler"
|
2022-11-01 13:49:45 +08:00
|
|
|
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-10-19 18:37:27 +08:00
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2022-10-19 18:37:27 +08:00
|
|
|
flags
|
|
|
|
{
|
2022-11-01 13:49:45 +08:00
|
|
|
"MultiProcessorCompile"
|
2022-10-19 18:37:27 +08:00
|
|
|
}
|
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-10-19 18:37:27 +08:00
|
|
|
|
2022-11-01 13:49:45 +08:00
|
|
|
filter "configurations:Release"
|
|
|
|
optimize "On"
|
|
|
|
defines{"_RELEASE"}
|
|
|
|
links{"assimp-vc142-mt.lib"}
|
2022-10-19 18:37:27 +08:00
|
|
|
|
2022-11-01 13:49:45 +08:00
|
|
|
filter "configurations:Publish"
|
|
|
|
optimize "On"
|
|
|
|
defines{"_RELEASE, _PUBLISH"}
|
|
|
|
links{"assimp-vc142-mt.lib"}
|