Updated CMake for minimal mode