Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 628 Bytes

build-the-examples.md

File metadata and controls

28 lines (21 loc) · 628 Bytes
layout title nav_order has_children parent grand_parent has_toc
default
Build the Examples
2
false
Build from Source
Integration
false

Build the Examples

This will build the examples in the build/examples directory:

mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O2"
cmake --build . --parallel 2 --config Release
  • Replace --parallel 2 with --parallel <number of cores in your machine>
  • On Windows, replace -O2 with /O2
  • On Linux, you might need sudo for this last command