sebitit / cpp-project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim

Configure editor via vim ~/.vimrc

set number syntax on

CMake

Create and navigate to the build directory

mkdir build
cd build

Configure the project

cmake ..

Build the project

cmake --build .

Run the executable

./cpp-project

Doctest

Run tests

Build

cd ./build
rm -rf ./* && cmake .. && make

Run

ctest --test-dir tests or
ctest --rerun-failed --output-on-failure or
make test

Set alias for clean-up build

alias cmake-clean-build='cd ./build && rm -rf ./* && cmake .. && make'

About


Languages

Language:C++ 76.4%Language:CMake 23.6%