Explicitly add dependency of examples on main library whilst maintaining copy-and-pasteability of example cmake files. This fixes failures during parallel builds.

Signed-off-by: Steven Lovegrove <stevenlovegrove@gmail.com>