Added template stuff

This commit is contained in:
TriantaTV 2023-09-15 17:16:41 -05:00
parent 10c7f5cc1c
commit c80093f929
3 changed files with 22 additions and 1 deletions

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.10)
project(
search-algorithms
something
LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 11 CACHE STRING "The C++ standard to use")

View File

@ -1,2 +1,18 @@
# 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
View File

@ -0,0 +1,5 @@
add_executable(something
./main.cpp
)
target_include_directories(something PUBLIC ${CMAKE_CURRENT_LIST_DIR})