cmake: HeaderTest: Build all header tests twice

This is to detect non-inlined methods and functions in headers
which would result in link errors if included more than once
due to multiple definitions of the same symbol occuring.