adding cmake capacity; fixing gtest bug