Skip to content
This repository has been archived by the owner on Apr 9, 2022. It is now read-only.

Windows Build Quickstart

David Reed edited this page Feb 27, 2022 · 11 revisions

This is a guide to quickly setup the C++ Bare Server on Windows.

Requisites

vcpkg integrate install

Visual Studio

Make sure you're selecting Visual Studio, not Visual Studio Code.

When installing, select:

  • Desktop development with C++

Install required packages

These steps assume you're running on x64 Windows.

  • OpenSSL
vcpkg install openssl-windows:x64-windows
  • Boost
vcpkg install boost:x64-windows
  • RapidJSON
vcpkg install rapidjson:x64-windows

Building

  1. Clone this repository locally.
  2. Clone the submodules
git submodule init
git submodule update
  1. Enter a build directory
mkdir ./build
cd ./build
  1. Configure (Replace C:/PATH/TO/vcpkg with the path to your vcpkg installation)
cmake ../ -D_WIN32_WINNT=0x0601 -DVCPKG_TARGET_TRIPLET=x64-windows -DCMAKE_TOOLCHAIN_FILE=C:/PATH/TO/vcpkg/scripts/buildsystems/vcpkg.cmake
  1. Open the ALL_BUILD.vcxproj file (located within the build directory) in Visual Studio.

  2. Right click ALL_BUILD under Solution, select Build

Clone this wiki locally