OK, thanks
IMHO: It is too complicated! see too CMake Error: install(EXPORT "ProjectTargets" ...) includes target "xxx" which requires target "yyy" that is not in any export set.
and Feature/exclude from all problem by ClausKlein 路 Pull Request #7 路 ClausKlein/ModernCmakeStarter 路 GitHub