Move tests into own directory
Automatically generate a list of generated headers.
More consistent CMake formatting.
Add option to deactivate building tests.
Merge pull request #16 from Ventero/cmake

Some CMake refactoring.