mirror of
				https://github.com/TheLartians/ModernCppStarter.git
				synced 2025-10-31 02:01:33 +01:00 
			
		
		
		
	Added compile_commands.json
For using clangd we need the compile database of compile_commands.json
This commit is contained in:
		
							parent
							
								
									f0b5bdb1f5
								
							
						
					
					
						commit
						210299b309
					
				
					 2 changed files with 4 additions and 0 deletions
				
			
		|  | @ -9,6 +9,8 @@ project( | ||||||
|   LANGUAGES CXX |   LANGUAGES CXX | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||||||
|  | 
 | ||||||
| # ---- Include guards ---- | # ---- Include guards ---- | ||||||
| 
 | 
 | ||||||
| if(PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR) | if(PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR) | ||||||
|  |  | ||||||
|  | @ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.14...3.22) | ||||||
| 
 | 
 | ||||||
| project(GreeterTests LANGUAGES CXX) | project(GreeterTests LANGUAGES CXX) | ||||||
| 
 | 
 | ||||||
|  | set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||||||
|  | 
 | ||||||
| # ---- Options ---- | # ---- Options ---- | ||||||
| 
 | 
 | ||||||
| option(ENABLE_TEST_COVERAGE "Enable test coverage" OFF) | option(ENABLE_TEST_COVERAGE "Enable test coverage" OFF) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue