mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Add CMakePresets.json
"default" preset - build with Ninja - enables GCC color diagonstics under Ninja - uses /build dir - enables DEVELOP build - compiles with optimizations and debug symbols "debug" preset - compiles without optimizations - enables further debug info
This commit is contained in:
		
							parent
							
								
									cf609113f3
								
							
						
					
					
						commit
						79bf9b1225
					
				
					 1 changed files with 31 additions and 0 deletions
				
			
		
							
								
								
									
										31
									
								
								CMakePresets.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								CMakePresets.json
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,31 @@ | |||
| { | ||||
| 	"version": 2, | ||||
| 	"configurePresets": [ | ||||
| 		{ | ||||
| 			"name": "default", | ||||
| 			"description": "Build using Ninja", | ||||
| 			"generator": "Ninja", | ||||
| 			"binaryDir": "build", | ||||
| 			"cacheVariables": { | ||||
| 				"CMAKE_C_FLAGS": "-fdiagnostics-color", | ||||
| 				"CMAKE_CXX_FLAGS": "-fdiagnostics-color", | ||||
| 				"SRB2_CONFIG_DEV_BUILD": "ON", | ||||
| 				"CMAKE_BUILD_TYPE": "RelWithDebInfo" | ||||
| 			} | ||||
| 		}, | ||||
| 		{ | ||||
| 			"name": "debug", | ||||
| 			"description": "Build for development (no optimizations)", | ||||
| 			"inherits": "default", | ||||
| 			"cacheVariables": { | ||||
| 				"CMAKE_BUILD_TYPE": "Debug" | ||||
| 			} | ||||
| 		} | ||||
| 	], | ||||
| 	"buildPresets": [ | ||||
| 		{ | ||||
| 			"name": "default", | ||||
| 			"configurePreset": "default" | ||||
| 		} | ||||
| 	] | ||||
| } | ||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 James R
						James R