mirror of
				https://github.com/TheLartians/ModernCppStarter.git
				synced 2025-10-31 18:21:35 +01:00 
			
		
		
		
	make it useable for me
extent cmake-format config file use package-lock too
This commit is contained in:
		
							parent
							
								
									d4c654f026
								
							
						
					
					
						commit
						47fa7c6933
					
				
					 14 changed files with 225 additions and 29 deletions
				
			
		|  | @ -14,6 +14,7 @@ include(../cmake/tools.cmake) | |||
| # ---- Dependencies ---- | ||||
| 
 | ||||
| include(../cmake/CPM.cmake) | ||||
| CPMUsePackageLock(package-lock.cmake) | ||||
| 
 | ||||
| CPMAddPackage( | ||||
|   NAME doctest | ||||
|  | @ -37,7 +38,7 @@ CPMAddPackage( | |||
| 
 | ||||
| # ---- Create binary ---- | ||||
| 
 | ||||
| file(GLOB sources CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/source/*.cpp) | ||||
| file(GLOB sources CONFIGURE_DEPENDS source/*.cpp) | ||||
| add_executable(GreeterTests ${sources}) | ||||
| target_link_libraries(GreeterTests doctest::doctest Greeter::Greeter) | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										34
									
								
								test/package-lock.cmake
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								test/package-lock.cmake
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,34 @@ | |||
| # CPM Package Lock This file should be committed to version control | ||||
| 
 | ||||
| # Ccache.cmake | ||||
| CPMDeclarePackage( | ||||
|   Ccache.cmake | ||||
|   NAME | ||||
|   Ccache.cmake | ||||
|   VERSION | ||||
|   1.2.1 | ||||
|   GITHUB_REPOSITORY | ||||
|   TheLartians/Ccache.cmake | ||||
| ) | ||||
| # doctest | ||||
| CPMDeclarePackage( | ||||
|   doctest | ||||
|   NAME | ||||
|   doctest | ||||
|   GIT_TAG | ||||
|   2.4.5 | ||||
|   GITHUB_REPOSITORY | ||||
|   onqtam/doctest | ||||
| ) | ||||
| # Format.cmake | ||||
| CPMDeclarePackage( | ||||
|   Format.cmake | ||||
|   NAME | ||||
|   Format.cmake | ||||
|   VERSION | ||||
|   1.6 | ||||
|   GITHUB_REPOSITORY | ||||
|   TheLartians/Format.cmake | ||||
|   OPTIONS | ||||
|   "FORMAT_CHECK_CMAKE ON" | ||||
| ) | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue