Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.48 KB

BUILDING.md

File metadata and controls

53 lines (37 loc) · 1.48 KB

Building with CMake

Build

This project is header file only. You don't need to do any builds if you are want to use it for your project. For developers, the following commands can be used to build the tests.

This project doesn't require any special command-line flags to build to keep things simple.

You can simply use the build.sh in the project root to build the project.

Alternatively, here are the steps for building in release mode with a single-configuration generator, like the Unix Makefiles one:

cmake -S . -B build -D CMAKE_BUILD_TYPE=Release
cmake --build build

Here are the steps for building in release mode with a multi-configuration generator, like the Visual Studio ones:

cmake -S . -B build
cmake --build build --config Release

Install

This project doesn't require any special command-line flags to install to keep things simple. As a prerequisite, the project has to be built with the above commands already.

The below commands require at least CMake 3.15 to run, because that is the version in which Install a Project was added.

Here is the command for installing the release mode artifacts with a single-configuration generator, like the Unix Makefiles one:

cmake --install build

Here is the command for installing the release mode artifacts with a multi-configuration generator, like the Visual Studio ones:

cmake --install build --config Release