Skip to content

A CMake template with unit-testing and micro-benchmarking.

Notifications You must be signed in to change notification settings

tueda/cmake-template

Repository files navigation

cmake-template

Build Status pipeline status

A CMake template with doctest and Google Benchmark.

Get started

  1. Clone this repository.

  2. Squash all the history to make an initial commit.

    git reset $(git commit-tree HEAD^{tree} -m "Initial commit")
  3. Amend the initial commit by adding/deleting/modifying files. It may be useful to see results of

    git ls-files     # list of files in the repository
    git grep -n foo  # lines containing the dummy project name "foo"

Arguable default values you might want to look into:

Build

A typical CMake build process on Linux is

git submodule update --init
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/path/to/install ..
make
make check
make bench
make install

About

A CMake template with unit-testing and micro-benchmarking.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published