add switches to CMakeLists.txt