cmake: Generate shell and cmd configuration
Merge pull request #2993 from rleigh-dundee/cmake-config

cmake: Generate shell and cmd configuration