mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:22:43 +00:00 
			
		
		
		
	 de2bf3f333
			
		
	
	
		de2bf3f333
		
	
	
	
	
		
			
			By using the power of object libraries and $<TARGET_OBJECTS> we can make sure to only build TestMain.cpp and JavaScriptTestRunnerMain.cpp once. Previously we built these cpp files into object files once for every single test executable. This change reduces the number of total compile jobs in a Serenity target build by around 100.
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			290 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			290 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| serenity_install_sources("Userland/Libraries/LibTest")
 | |
| 
 | |
| set(SOURCES
 | |
|     TestSuite.cpp
 | |
|     CrashTest.cpp
 | |
| )
 | |
| 
 | |
| serenity_lib(LibTest test)
 | |
| target_link_libraries(LibTest LibC)
 | |
| 
 | |
| add_library(LibTestMain OBJECT TestMain.cpp)
 | |
| add_library(JavaScriptTestRunnerMain OBJECT JavaScriptTestRunnerMain.cpp)
 |