include path variable name change

This commit is contained in:
Xiao Qi 2022-11-01 14:05:38 +08:00
parent 680cf4bab7
commit d194ca68fe
1 changed files with 7 additions and 8 deletions

View File

@ -1,5 +1,4 @@
IncludeDir = {} AssimpInclude = "%{wks.location}\\Dependencies\\assimp"
IncludeDir["assimp"] = "%{wks.location}\\Dependencies\\assimp"
project "ModelCompileLibrary" project "ModelCompileLibrary"
kind "ConsoleApp" kind "ConsoleApp"
@ -25,7 +24,7 @@ project "ModelCompileLibrary"
externalincludedirs externalincludedirs
{ {
"%{IncludeDir.assimp}\\include" "%{AssimpInclude}\\include"
} }
includedirs includedirs
@ -37,8 +36,8 @@ project "ModelCompileLibrary"
libdirs libdirs
{ {
"%{IncludeDir.assimp}/lib/Debug", "%{AssimpInclude}/lib/Debug",
"%{IncludeDir.assimp}/lib/Release" "%{AssimpInclude}/lib/Release"
} }
flags flags
@ -49,19 +48,19 @@ project "ModelCompileLibrary"
filter "configurations:Debug" filter "configurations:Debug"
postbuildcommands postbuildcommands
{ {
"xcopy /r /y /q \"%{IncludeDir.assimp}\\bin\\Debug\\assimp-vc142-mtd.dll\" \"$(OutDir)\"" "xcopy /r /y /q \"%{AssimpInclude}\\bin\\Debug\\assimp-vc142-mtd.dll\" \"$(OutDir)\""
} }
filter "configurations:Release" filter "configurations:Release"
postbuildcommands postbuildcommands
{ {
"xcopy /r /y /q \"%{IncludeDir.assimp}\\bin\\Release\\assimp-vc142-mt.dll\" \"$(OutDir)\"" "xcopy /r /y /q \"%{AssimpInclude}\\bin\\Release\\assimp-vc142-mt.dll\" \"$(OutDir)\""
} }
filter "configurations:Publish" filter "configurations:Publish"
postbuildcommands postbuildcommands
{ {
"xcopy /r /y /q \"%{IncludeDir.assimp}\\bin\\Release\\assimp-vc142-mt.dll\" \"$(OutDir)\"" "xcopy /r /y /q \"%{AssimpInclude}\\bin\\Release\\assimp-vc142-mt.dll\" \"$(OutDir)\""
} }
warnings 'Extra' warnings 'Extra'