You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* First create a convenient folder to build the code in:
mkdir build
cd build
* Next run CMake to create the configuration files to be used in the build:
cmake .. \
-DCMAKE_BUILD_TYPE=debug \
-DCMAKE_INSTALL_PREFIX=/usr/local
Various options can be passed to CMake to control how a project gets built, but these are the most common:
The first line tells CMake where it can find the source code that is to be built.
The second line tells CMake what type of build is required, in this example a debug build that will include useful information for when we are debugging any the software.
The third line tells CMake where to install the software.