Forced top level cmake to config.

Only a few dirs remain to config, including tests.