Added template stuff
This commit is contained in:
		
							parent
							
								
									10c7f5cc1c
								
							
						
					
					
						commit
						c80093f929
					
				@ -1,7 +1,7 @@
 | 
				
			|||||||
cmake_minimum_required(VERSION 3.10)
 | 
					cmake_minimum_required(VERSION 3.10)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
project(
 | 
					project(
 | 
				
			||||||
    search-algorithms
 | 
					    something
 | 
				
			||||||
    LANGUAGES CXX)
 | 
					    LANGUAGES CXX)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set(CMAKE_CXX_STANDARD 11 CACHE STRING "The C++ standard to use")
 | 
					set(CMAKE_CXX_STANDARD 11 CACHE STRING "The C++ standard to use")
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										16
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								README.md
									
									
									
									
									
								
							@ -1,2 +1,18 @@
 | 
				
			|||||||
# cpp-unity-template
 | 
					# cpp-unity-template
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Compiling the project
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Prerequisites
 | 
				
			||||||
 | 
					  - C++11
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					In order to compile the project, simply run these two commands:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    cmake -B build -S .
 | 
				
			||||||
 | 
					    cmake --build build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Running the Project
 | 
				
			||||||
 | 
					The program should now be compiled at ./build/bin/something
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Simply run the program using:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    build/bin/something
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										5
									
								
								src/CMakeLists.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								src/CMakeLists.txt
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,5 @@
 | 
				
			|||||||
 | 
					add_executable(something
 | 
				
			||||||
 | 
					    ./main.cpp
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					target_include_directories(something PUBLIC ${CMAKE_CURRENT_LIST_DIR})
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user