mirror of
				https://github.com/Laupetin/OpenAssetTools.git
				synced 2025-11-03 20:17:09 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			60 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			60 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
ObjWritingTests = {}
 | 
						|
 | 
						|
function ObjWritingTests:include(includes)
 | 
						|
	if includes:handle(self:name()) then
 | 
						|
		includedirs {
 | 
						|
			"%{wks.location}/src/ObjWriting",
 | 
						|
			path.join(TestFolder(), "ObjWritingTests")
 | 
						|
		}
 | 
						|
	end
 | 
						|
end
 | 
						|
 | 
						|
function ObjWritingTests:link(links)
 | 
						|
	
 | 
						|
end
 | 
						|
 | 
						|
function ObjWritingTests:use()
 | 
						|
	
 | 
						|
end
 | 
						|
 | 
						|
function ObjWritingTests:name()
 | 
						|
    return "ObjWritingTests"
 | 
						|
end
 | 
						|
 | 
						|
function ObjWritingTests:project()
 | 
						|
	local folder = TestFolder()
 | 
						|
	local includes = Includes:create()
 | 
						|
	local links = Links:create()
 | 
						|
 | 
						|
	project(self:name())
 | 
						|
        targetdir(TargetDirectoryTest)
 | 
						|
		location "%{wks.location}/test/%{prj.name}"
 | 
						|
		kind "ConsoleApp"
 | 
						|
		language "C++"
 | 
						|
		
 | 
						|
		files {
 | 
						|
			path.join(folder, "ObjWritingTests/**.h"), 
 | 
						|
			path.join(folder, "ObjWritingTests/**.cpp")
 | 
						|
		}
 | 
						|
		
 | 
						|
        vpaths {
 | 
						|
			["*"] = {
 | 
						|
				path.join(folder, "ObjWritingTests")
 | 
						|
			}
 | 
						|
		}
 | 
						|
		
 | 
						|
		self:include(includes)
 | 
						|
		Catch2Common:include(includes)
 | 
						|
		ObjCommonTestUtils:include(includes)
 | 
						|
		ParserTestUtils:include(includes)
 | 
						|
		ObjWriting:include(includes)
 | 
						|
		catch2:include(includes)
 | 
						|
 | 
						|
		links:linkto(ObjCommonTestUtils)
 | 
						|
		links:linkto(ParserTestUtils)
 | 
						|
		links:linkto(ObjWriting)
 | 
						|
		links:linkto(catch2)
 | 
						|
		links:linkto(Catch2Common)
 | 
						|
		links:linkall()
 | 
						|
end
 |