mirror of
				https://github.com/TheLartians/ModernCppStarter.git
				synced 2025-10-31 02:01:33 +01:00 
			
		
		
		
	cmakelint cmake files
NOTE: still warnings about CamelCases!
This commit is contained in:
		
							parent
							
								
									cd175563a3
								
							
						
					
					
						commit
						2ef6e12daa
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -44,8 +44,7 @@ CPMAddPackage( | ||||||
| file(GLOB sources CONFIGURE_DEPENDS source/*.cpp) | file(GLOB sources CONFIGURE_DEPENDS source/*.cpp) | ||||||
| add_executable(GreeterTests ${sources}) | add_executable(GreeterTests ${sources}) | ||||||
| target_link_libraries(GreeterTests doctest::doctest Greeter::Greeter) | target_link_libraries(GreeterTests doctest::doctest Greeter::Greeter) | ||||||
| 
 | target_compile_features(GreeterTests PUBLIC cxx_std_17) | ||||||
| set_target_properties(GreeterTests PROPERTIES CXX_STANDARD 17) |  | ||||||
| 
 | 
 | ||||||
| # enable compiler warnings | # enable compiler warnings | ||||||
| if(NOT TEST_INSTALLED_VERSION) | if(NOT TEST_INSTALLED_VERSION) | ||||||
|  | @ -66,7 +65,7 @@ enable_testing() | ||||||
| # doctest_discover_tests(GreeterTests) | # doctest_discover_tests(GreeterTests) | ||||||
| 
 | 
 | ||||||
| # For other testing frameworks add the tests target instead: | # For other testing frameworks add the tests target instead: | ||||||
| ADD_TEST(GreeterTests GreeterTests) | add_test(NAME GreeterTests COMMAND GreeterTests --success=false) | ||||||
| 
 | 
 | ||||||
| # ---- code coverage ---- | # ---- code coverage ---- | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue