mirror of
				https://github.com/TheLartians/ModernCppStarter.git
				synced 2025-10-31 02:01:33 +01:00 
			
		
		
		
	track coverage in the actual project
This commit is contained in:
		
							parent
							
								
									c2943ec551
								
							
						
					
					
						commit
						83d0e6e7cc
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -55,6 +55,6 @@ ADD_TEST(GreeterTests GreeterTests) | ||||||
| # ---- code coverage ---- | # ---- code coverage ---- | ||||||
| 
 | 
 | ||||||
| if (${ENABLE_TEST_COVERAGE}) | if (${ENABLE_TEST_COVERAGE}) | ||||||
|   set_target_properties(GreeterTests PROPERTIES CXX_STANDARD 17 COMPILE_FLAGS "-O0 -g -fprofile-arcs -ftest-coverage --coverage") |   set_target_properties(Greeter PROPERTIES CXX_STANDARD 17 COMPILE_FLAGS "-O0 -g -fprofile-arcs -ftest-coverage --coverage") | ||||||
|   target_link_options(GreeterTests PUBLIC "--coverage") |   target_link_options(Greeter PUBLIC "--coverage") | ||||||
| endif() | endif() | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue