cppcheck: Add CFGDIR and install cfg directory.

Closes #26194.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>