philsquared/Catch — pull request #215 by Fraser999 (2013-11-07 23:10:36+00:00)
Title: Added headers to targets in CMakeLists.txt

I've added all the headers currently in the source tree to the CMakeLists file. This is a convenience feature which allows these to show up in IDEs - it doesn't affect the build in any way.

I'd personally favour having the lists in a CMake file per directory rather than cluttering up the main CMakeLists.txt, but that's personal preference. At the moment, there's only a single CMake file in the project and perhaps it's better to keep it that way?

I've also added a small function which checks that no source (.cpp) or header (.hpp / .h) files have been omitted from the hard-coded CMake variables. It only issues a developer warning if this does happen, so unless it's a required source file which is missing, it won't actually break the build.