Skip to content

Build and run

dk949 edited this page May 21, 2022 · 3 revisions

Fetch and bootstrap vcpkg

This needs to be done once

  • Unix-like
git clone "https://github.com/Microsoft/vcpkg.git"
./vcpkg/bootstrap-vcpkg.sh # -disableMetrics
./vcpkg/vcpkg install
  • Windows
git clone "https://github.com/Microsoft/vcpkg.git"
.\vcpkg\bootstrap-vcpkg.bat # -disableMetrics
.\vcpkg\vcpkg install

See https://github.com/Microsoft/vcpkg#telemetry for details on -disableMetrics

Setup cmake

You may need to do this after changing the cmake configurations, though sometimes cmake will do it automatically.

cmake -B build

Build and run

cmake --build build
./build/bin/your_project_name

See Configuration options to change executable name.

Clone this wiki locally