mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-10-26 18:11:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			461 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			461 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| include(FetchContent)
 | |
| 
 | |
| message(STATUS "Fetching gtest...")
 | |
| 
 | |
| FetchContent_Declare(
 | |
| 	googletest
 | |
| 	GIT_REPOSITORY https://github.com/google/googletest.git
 | |
| 	GIT_TAG release-1.12.1
 | |
| 	GIT_PROGRESS TRUE
 | |
| 	GIT_SHALLOW 1
 | |
| )
 | |
| 
 | |
| # For Windows: Prevent overriding the parent project's compiler/linker settings
 | |
| set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
 | |
| 
 | |
| FetchContent_MakeAvailable(GoogleTest)
 | |
| 
 | |
| message(STATUS "gtest fetched and is now ready.")
 | |
| set(GoogleTest_FOUND TRUE)
 | 
