I have recently discovered VERIFY_INTERFACE_HEADER_SETS and it seems like a super useful tool, but I am having trouble making it be useful in a project that uses private headers (i.e. headers that don’t get installed).
The problem as far as I understand is that the check runs on the source code so the private headers are available when the check is run, but if i made a mistake and there’s an installed header that depends on a non installed one, then that header is really unusable and the check should ideally fail.
Would it be possible to have an option that runs the check over the installed headers so that these mistakes would be discovered?
My example is like
.
├── CMakeLists.txt
├── private
│ └── private.h
├── testlib.cpp
└── testlib.h
and testlib.h includes (by mistake) private.h and testlib.h gets installed but private.h does not.