Skip to content
/ cpp-template Public template

a template to bootstrap C++ research projects

License

Notifications You must be signed in to change notification settings

XiangpengHao/cpp-template

Repository files navigation

Template to bootstrap C++ research projects

Build Status

this language (C++) has many dark corner, stupid conventions, implicit conversion and not mention UB -- Wojciech Muła

Context: my research focus is high performance computing

You might also like: https://www.rust-lang.org. My intuition is unless your daily routine is to perf code line-by-line, calcuate each cache use, measure every memory hit; you should consider rust-lang.

Features

  • GTest + GLog

  • Modern CMake, keep compile time in mind

  • C++ 17

  • Sanitizers enabled in Debug mode, march=native in Release mode.

  • Docker enabled

  • CI included

  • Clang-format: Google style

Build

mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE={Debug|Release} ..
make -j