mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-10-25 16:58:08 +00:00 
			
		
		
		
	 adc9cd2876
			
		
	
	adc9cd2876
	
	
	
		
			
			* saving from a test works * testing works * Update SavingTests.cpp * test dServer stuff * tests * use dummy database and add missing pure fns * add more tests * add more tests * add rocket tests * Update BuffComponent.h * Update test_xml_data.xml * Update SavingTests.cpp * update
		
			
				
	
	
		
			19 lines
		
	
	
		
			604 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			604 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| set(DCOMPONENTS_TESTS
 | |
| 	"DestroyableComponentTests.cpp"
 | |
| 	"PetComponentTests.cpp"
 | |
| 	"SimplePhysicsComponentTests.cpp"
 | |
| 	"SavingTests.cpp"
 | |
| )
 | |
| 
 | |
| # Get the folder name and prepend it to the files above
 | |
| get_filename_component(thisFolderName ${CMAKE_CURRENT_SOURCE_DIR} NAME)
 | |
| list(TRANSFORM DCOMPONENTS_TESTS PREPEND "${thisFolderName}/")
 | |
| 
 | |
| # Export to parent scope
 | |
| set(DCOMPONENTS_TESTS ${DCOMPONENTS_TESTS} PARENT_SCOPE)
 | |
| 
 | |
| # Copy test files to testing directory
 | |
| add_subdirectory(TestData)
 | |
| list(TRANSFORM COMPONENT_TEST_DATA PREPEND "${thisFolderName}/")
 | |
| set(COMPONENT_TEST_DATA ${COMPONENT_TEST_DATA} PARENT_SCOPE)
 |