Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bast/calculator

Exercise to practice building projects with CMake.
https://github.com/bast/calculator

cmake cpp fortran google-test

Last synced: 4 months ago
JSON representation

Exercise to practice building projects with CMake.

Awesome Lists containing this project

README

        

[![License](https://img.shields.io/badge/license-%20poetic-blue.svg)](../master/LICENSE.md)

# Calculator

Exercise to practice building projects with [CMake](https://cmake.org).

The source code and unit tests are organized as follows:

```
.
├── LICENSE.md
├── README.md
├── src
│   ├── add.f90
│   ├── calculator.h
│   ├── main.cpp
│   └── subtract.f90
└── test
├── calculator.cpp
└── main.cpp
```

## Tasks

- Build a shared library.
- Build and link the main program.
- Build the unit tests and link against [Google Test](https://github.com/google/googletest).
- Define a version number inside CMake and print it to the output of the executable.
- Print the Git hash to the output of the executable.
- Create an installer so the program can be installed properly (GNU standards).
- Create a DEB or RPM package (if relevant for your distribution).