Add options to disable building tests or examples.
Fix `add_target_to_copy_dependencies` when list of dependencies is empty.

This happens on non-windows platforms.  Was calling `add_dependencies` with just one argument which caused an error.