Removed solution, only project

This commit is contained in:
Xiao Qi 2022-11-01 13:49:45 +08:00
parent e503ae1814
commit 680cf4bab7
8 changed files with 69 additions and 81 deletions

View File

@ -1,71 +0,0 @@
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
{
"%{IncludeDir.assimp}\\include"
}
includedirs
{
"%{prj.location}/src",
}
externalwarnings "Off"
libdirs
{
"%{IncludeDir.assimp}/lib/Debug",
"%{IncludeDir.assimp}/lib/Release"
}
flags
{
"MultiProcessorCompile"
}
filter "configurations:Debug"
postbuildcommands
{
"xcopy /r /y /q \"%{IncludeDir.assimp}\\bin\\Debug\\assimp-vc142-mtd.dll\" \"$(OutDir)\""
}
filter "configurations:Release"
postbuildcommands
{
"xcopy /r /y /q \"%{IncludeDir.assimp}\\bin\\Release\\assimp-vc142-mt.dll\" \"$(OutDir)\""
}
filter "configurations:Publish"
postbuildcommands
{
"xcopy /r /y /q \"%{IncludeDir.assimp}\\bin\\Release\\assimp-vc142-mt.dll\" \"$(OutDir)\""
}
warnings 'Extra'
filter "configurations:Debug"
symbols "On"
defines {"_DEBUG"}
links{"assimp-vc142-mtd.lib"}
filter "configurations:Release"
optimize "On"
defines{"_RELEASE"}
links{"assimp-vc142-mt.lib"}
filter "configurations:Publish"
optimize "On"
defines{"_RELEASE, _PUBLISH"}
links{"assimp-vc142-mt.lib"}

View File

@ -1,9 +1,14 @@
IncludeDir = {}
IncludeDir["assimp"] = "%{wks.location}\\Dependencies\\assimp"
workspace "ModelCompileLibrary"
architecture "x64"
startproject "Assimp Compile Application"
project "ModelCompileLibrary"
kind "ConsoleApp"
language "C++"
cppdialect "C++20"
targetdir (outputdir)
objdir (interdir)
systemversion "latest"
configurations
{
@ -12,12 +17,66 @@ workspace "ModelCompileLibrary"
"Publish"
}
flags
files
{
"MultiProcessorCompile"
"%{prj.location}/src/**.h",
"%{prj.location}/src/**.cpp",
}
outputdir = "%{wks.location}/bin/%{cfg.buildcfg}"
interdir = "%{wks.location}/bin_int"
externalincludedirs
{
"%{IncludeDir.assimp}\\include"
}
include "ModelCompileLibrary"
includedirs
{
"%{prj.location}/src",
}
externalwarnings "Off"
libdirs
{
"%{IncludeDir.assimp}/lib/Debug",
"%{IncludeDir.assimp}/lib/Release"
}
flags
{
"MultiProcessorCompile"
}
filter "configurations:Debug"
postbuildcommands
{
"xcopy /r /y /q \"%{IncludeDir.assimp}\\bin\\Debug\\assimp-vc142-mtd.dll\" \"$(OutDir)\""
}
filter "configurations:Release"
postbuildcommands
{
"xcopy /r /y /q \"%{IncludeDir.assimp}\\bin\\Release\\assimp-vc142-mt.dll\" \"$(OutDir)\""
}
filter "configurations:Publish"
postbuildcommands
{
"xcopy /r /y /q \"%{IncludeDir.assimp}\\bin\\Release\\assimp-vc142-mt.dll\" \"$(OutDir)\""
}
warnings 'Extra'
filter "configurations:Debug"
symbols "On"
defines {"_DEBUG"}
links{"assimp-vc142-mtd.lib"}
filter "configurations:Release"
optimize "On"
defines{"_RELEASE"}
links{"assimp-vc142-mt.lib"}
filter "configurations:Publish"
optimize "On"
defines{"_RELEASE, _PUBLISH"}
links{"assimp-vc142-mt.lib"}