How to install VCPKG
Official Link: https://vcpkg.io/en/index.html
cd external
git clone https://github.com/Microsoft/vcpkg.git
.\vcpkg\bootstrap-vcpkg.bat # windows
./vcpkg/bootstrap-vcpkg.sh # Unix
How to install the Conan Package Manager
Official installation guide is here.
The conan database is here.
How to install Google Test on ubuntu
for gtest installation : https://gist.github.com/Cartexius/4c437c084d6e388288201aadf9c8cdd5?permalink_comment_id=2822039#gistcomment-2822039
sudo apt-get install libgtest-dev
cd /usr/src/googletest/googletest
sudo mkdir build
cd build
sudo cmake ..
sudo make
sudo cp lib/libgtest* /usr/lib/
cd ..
sudo rm -rf build
Then do:
sudo mkdir /usr/local/lib/googletest
sudo ln -s /usr/lib/libgtest.a /usr/local/lib/googletest/libgtest.a
sudo ln -s /usr/lib/libgtest_main.a /usr/local/lib/googletest/libgtest_main.a
Installation Steps
- Install Python (3.7+)
- Type
pip install --user -U conan
into the terminal
- Unix: Append conan to the PATH by:
source ~/.profile
- Run the conan command:
conan
- conan profile detect –force
- conan profile path default
Formatter and Static Analyzer
Tooling
Clang-Format: Formatting tool for your C/C++ code:
- Documentation for Clang-Format: Link
Clang-Tidy: Static linting tool for your C/C++ code:
- Documentation for Clang-Tidy: Link
Cmake-Format:
pip install cmake-format # python 3.7+
Coverage Tools
sudo apt-get install gcovr
pip install -U gcovr
Install Clang Tools
It's included in the LLVM toolchain, but also installable by apt, brew, winget etc.
https://github.com/llvm/llvm-project/releases/tag/llvmorg-16.0.0