- A
CMake
based project template forC++
, with test and benchmark template. - Code file:
- support file with suffix of .h or .cc or .cpp.
- place test file in the same directory of source file, with a suffix of
_test
. - place benchmark file in the same directory of source file, with a suffix of
_benchmark
.
- Code format:
script/format.sh
formats all theC/C++
file,CMake
file andshell
script.- use
clang-format
to formatC/C++
file. - use
cmake-format
to formatCMake
file. - use
shfmt
to formatshell
script.
- Doc:
doxygen
forC++
document generation.html
document ofinclude
directory will be generated indoc/api/html
.
- Manage external dependencies by
CMake find_package
, place the config file incmake/module
. - Export cmake target dependency graph by
graphviz
&dot
.
mkdir -p build && cd build && cmake .. && make -j 10
mkdir -p build && cd build && cmake .. && make dg