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

https://github.com/rddevitte/temperature

A small library for storing temperature values as well as converting them from one unit to another.
https://github.com/rddevitte/temperature

Last synced: 5 months ago
JSON representation

A small library for storing temperature values as well as converting them from one unit to another.

Awesome Lists containing this project

README

          

# temperature

A small library for storing temperature values as well as converting them from one unit to another.

## Build

### Prerequisites

To build locally on GNU/Linux, the GNU G++, the GNU Make, the Kitware's CMake and the Google's
GoogleTest packages must be installed.

To install them on Ubuntu, run:

sudo apt update && sudo apt -y install --no-install-recommends g++ make cmake libgtest-dev valgrind doxygen clang

Alternatively, you can also use the Dockerized environment. The only prerequisite is to have the Docker
Engine installed. To install it, please refer to [the official Docker guide](https://docs.docker.com/get-started/get-docker/).

For running the environment, run:

./enter-devel

### Build

To build the library and the GTest executable, run:

./build

### Clean

To clean up the environment, run:

./clean

## Run

To run the GTest executable directly, run:

./_build/test/temperature_test

Alternatively, to run with CTest, run:

ctest --test-dir ./_build/test