I have found the flag -DBUILD_EXAMPLES=ON
and can see that the samples are in <cmake_build_directory>/bin
.
How does one get the compiled examples to install?
By install I mean copy and set permissions somewhere under PREFIX. In this case /usr/local/bin.
I went to <cmake_build_directory>/samples
and tried make install
but it only installed the source files.