Tests: Extend FindHDF5 tests to link and run executables

Verify that this works using both targets and variables.
5 files changed