Updated CMakeLists.txt to allow on-off options.