Is there a tool that generates a single header out of a header-only C++ library consisting of
.tcc (headers for template function definitions) files?
It should perform partial pre-processing, for example replace
of the headers belonging to the same source code tree, but leave
#include's of external headers.
For example Catch (unit testing framework) uses a Python script (https://github.com/philsquared/Catch/tree/master/scripts) which seems to be custom written.
Is there a reusable tool for this? For example a CMake plugin, etc.