Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleCalculator/ $: tree
.
├── src
│   ├── operations.cpp
│   └── operations.h
└── tst
    ├── run_tests.cpp
    └── test_operations.cpp

...


Build the project  -

...

CMake

After the source and test codes code are ready, the project can be built and compiled. At the top of the project's folder structure, add CMakeList. The contents of the file are listed below:

Code Block
languagecpp
linenumberstrue
cmake_minimum_required(VERSION 3.16)
project(Calculator)

set(CMAKE_CXX_STANDARD 11)

include_directories(src)
add_subdirectory(src)

enable_testing()
add_subdirectory(tst)