blob: d4c00573e00ee3cfdf4e9edb2a833ae81002aaaa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -72,8 +72,9 @@
include_directories("${gtest_SOURCE_DIR}/include")
elseif (BUILD_TESTS AND USE_SYSTEM_GTEST)
- enable_testing()
- add_subdirectory(/usr/src/googletest ${GLOBAL_OUTPUT_PATH}/googletest-build)
+ enable_testing()
+ find_package(GTest REQUIRED)
+ include_directories(${GTEST_INCLUDE_DIR})
endif()
# Compiler flags.
|