Updated CMakeLists to conditionally build gtests.