Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/bast/calculator
- Owner: bast
- License: other
- Created: 2017-11-08T21:32:24.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-17T10:02:11.000Z (over 6 years ago)
- Last Synced: 2024-01-29T08:47:51.216Z (about 1 year ago)
- Topics: cmake, cpp, fortran, google-test
- Language: C++
- Size: 19.5 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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).