Have CMake recursively scan folders?
CMake provides the following command for recursive files globing: file(GLOB_RECURSE variable [RELATIVE path] [FOLLOW_SYMLINKS] [globbing expressions]…) Command documentation: http://www.cmake.org/cmake/help/v2.8.8/cmake.html#command:file