This example shods how to include libraries. This is a very primitive version using a specific directory.
mkdir build_example_2
cd build_example_2/
cmake ../example_2/
make
Hint: there are more options to be considered for building stuff, see the other examples.