Skip to content

tomoss/cpp-boost-examples

Repository files navigation

Cpp Boost Examples

C++ examples with Boost v1.89.0.

This repository is structured as a CMake Monorepo. It uses vcpkg (Manifest Mode) for dependency management and CMake Presets for a unified build workflow on Linux.

Prerequisites

Before building, ensure you have the following installed:

  • C++ Compiler (GCC or Clang)
  • CMake (v3.20 or newer required for Presets)
  • Ninja (Recommended for build speed) or Make
  • pkg-config (required by some vcpkg ports)
  • Common build utilities used by vcpkg (git, curl, zip/unzip, tar)
  • vcpkg

vcpkg Installation (Project-Local)

Run the following commands from the project root:

git clone https://github.com/microsoft/vcpkg.git vcpkg
cd vcpkg
./bootstrap-vcpkg.sh -disableMetrics

Then set the environment variables:

export VCPKG_ROOT="$(pwd)"
export PATH="$VCPKG_ROOT:$PATH"

🏗️ Build Instructions (Monorepo Workflow)

The commands below are executed from the root of the repository.

1. Configure Workspace (Run Once)

This step reads vcpkg.json, downloads and compiles dependencies (Boost, Protobuf, etc.), and generates the build files.

cmake --preset vcpkg-debug

2. Build Commands

Build All

cmake --build --preset vcpkg-debug

Build Specific Project

cmake --build --preset vcpkg-debug --target <target_name>

Build Release

cmake --build --preset vcpkg-release

About

Examples with C++ Boost library version 1.89.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors