Add CMake project
This commit is contained in:
		
							parent
							
								
									0342f74b25
								
							
						
					
					
						commit
						af7d19a956
					
				
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @ -1 +1,2 @@ | ||||
| .vs/ | ||||
| build/ | ||||
|  | ||||
							
								
								
									
										4
									
								
								CMakeLists.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								CMakeLists.txt
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,4 @@ | ||||
| # Main NF CMakeLists.txt | ||||
| cmake_minimum_required(VERSION 3.20) | ||||
| 
 | ||||
| project(nf) | ||||
							
								
								
									
										49
									
								
								CMakePresets.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										49
									
								
								CMakePresets.json
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,49 @@ | ||||
| // NF CMake presets | ||||
| { | ||||
|   "version": 3, | ||||
| 
 | ||||
|   "configurePresets": [ | ||||
|     { | ||||
|       "name": "base", | ||||
|       "hidden": true, | ||||
|       "generator": "Ninja", | ||||
|       "binaryDir": "${sourceDir}/build/${presetName}", | ||||
|       "architecture": { | ||||
|         "value": "x64", | ||||
|         "strategy": "external" | ||||
|       }, | ||||
|       "cacheVariables": { | ||||
|         "CMAKE_C_COMPILER": "cl.exe", | ||||
|         "CMAKE_CXX_COMPILER": "cl.exe" | ||||
|       } | ||||
|     }, | ||||
| 
 | ||||
|     { | ||||
|       "name": "Debug", | ||||
|       "inherits": "base", | ||||
|       "cacheVariables": { | ||||
|         "CMAKE_BUILD_TYPE": "Debug" | ||||
|       } | ||||
|     }, | ||||
| 
 | ||||
|     { | ||||
|       "name": "Release", | ||||
|       "inherits": "base", | ||||
|       "cacheVariables": { | ||||
|         "CMAKE_BUILD_TYPE": "Release" | ||||
|       } | ||||
|     } | ||||
|   ], | ||||
| 
 | ||||
|   "buildPresets": [ | ||||
|     { | ||||
|       "name": "Debug", | ||||
|       "configurePreset": "Debug" | ||||
|     }, | ||||
| 
 | ||||
|     { | ||||
|       "name": "Release", | ||||
|       "configurePreset": "Release" | ||||
|     } | ||||
|   ] | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user