Initialize vcpkg submodule and generate build system (once):
git submodule update --init
mkdir build
cmake -B buildBuild and test:
make -C build all testThis regenerates the build system and downloads dependencies if necessary.
Run executables:
./build/main
./build/main2 --value=40This project uses clang-tidy and clang-format, which can be installed on MacOS as follows:
brew install llvm
ln -s "$(brew --prefix llvm)/bin/clang-format" "/usr/local/bin/clang-format"
ln -s "$(brew --prefix llvm)/bin/git-clang-format" "/usr/local/bin/git-clang-format"
ln -s "$(brew --prefix llvm)/bin/clang-tidy" "/usr/local/bin/clang-tidy"To reformat all source files, run
clang-format -i src/*The build process runs clang-tidy with the appropriate options. Unfortunately,
running clang-tidy src/* -p build yields errors.