Here put some cross-platform tools for convenience of C++ development. And also as a good sample for building C++ project.
-
Install conan 2.x package manager eg,
pip install conan
-
Install cmake eg,
pip install cmake
-
Install python numpy for boost eg,
pip install numpy
-
Prepare c++ toolchain
Windows: msvc
Linux: gcc or clang
Macos: apple-clang -
Adjust installation location of conan packages
conan cache clean
Windows: C:\Users<your_username>.conan2\global.conf
Linux/MacOS: ~/.conan2/global.confcore.cache:storage_path = xxxx core.download:download_cache = xxxx
mkdir build
cd build
# You can specify your compiler and generator in blow command
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --parallel --config Release