From c80093f929e463c24ba81610242449b654bf951b Mon Sep 17 00:00:00 2001 From: TriantaTV Date: Fri, 15 Sep 2023 17:16:41 -0500 Subject: [PATCH] Added template stuff --- CMakeLists.txt | 2 +- README.md | 16 ++++++++++++++++ src/CMakeLists.txt | 5 +++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 src/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 0834132..da0b217 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") diff --git a/README.md b/README.md index c49f0e0..d167e9b 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..4a2d7eb --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,5 @@ +add_executable(something + ./main.cpp +) + +target_include_directories(something PUBLIC ${CMAKE_CURRENT_LIST_DIR})