/libpocket

C++11 Data Structures & Algorithms Library

Primary LanguageC++MIT LicenseMIT

libpocket

Test-Driven Implementation of Data Structures & Algorithms in C++11

Description

libpocket is a test-driven implementation of stuff found in Lee Wittenberg's Data Structures and Algorithms in C++: Pocket Primer (hence the name) — an exercise aimed at refreshing C++, CMake, TDD, and, well, data structures and algorithms.

Safety warning: do not use this in production unless you really have to.

Build

Debug and Test

$ mkdir -p build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Debug ../
$ cmake --build .
$ ctest

To see Google Tests' verbose output, do

$ ctest -V

Release

$ mkdir -p build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release ../
$ cmake --build .

Install

$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release ../
$ cmake --build . --clean-first --target install