--- test/CMakeLists.txt.orig	2018-05-03 19:17:38.000000000 -0300
+++ test/CMakeLists.txt	2018-05-03 19:19:01.000000000 -0300
@@ -1,20 +1,17 @@
-find_package(GTestSrc)
+find_package(GTest REQUIRED)
 
-IF(GTESTSRC_FOUND)
+IF(GTEST_FOUND)
     enable_testing()
 
     if (WIN32 AND (NOT CYGWIN) AND (NOT MINGW))
         set(gtest_disable_pthreads ON)
         set(gtest_force_shared_crt ON)
     endif()
-
-    add_subdirectory(${GTEST_SOURCE_DIR} ${CMAKE_BINARY_DIR}/googletest)
-    include_directories(SYSTEM ${GTEST_INCLUDE_DIR})
-
+    
     set(TEST_LIBRARIES gtest gtest_main)
 
     add_custom_target(tests ALL)
     add_subdirectory(perftest)
     add_subdirectory(unittest)
 
-ENDIF(GTESTSRC_FOUND)
+ENDIF(GTEST_FOUND)
