Updates the cmake module
Adds basic functionality to the switch