135
|
1 if (DEBIAN_USE_STATIC_GOOGLE_TEST)
|
134
|
2 message(FATAL_ERROR "todo")
|
|
3
|
|
4 elseif (STATIC_BUILD OR NOT USE_DYNAMIC_GOOGLE_TEST)
|
0
|
5 SET(GTEST_SOURCES_DIR ${CMAKE_BINARY_DIR}/gtest-1.6.0)
|
|
6 DownloadPackage("http://googletest.googlecode.com/files/gtest-1.6.0.zip" "${GTEST_SOURCES_DIR}" "" "")
|
|
7
|
|
8 include_directories(
|
|
9 ${GTEST_SOURCES_DIR}/include
|
|
10 ${GTEST_SOURCES_DIR}
|
|
11 )
|
|
12
|
|
13 set(GTEST_SOURCES
|
|
14 ${GTEST_SOURCES_DIR}/src/gtest-all.cc
|
|
15 )
|
|
16
|
|
17 else()
|
|
18 include(FindGTest)
|
|
19 include_directories(${GTEST_INCLUDE_DIRS})
|
|
20 link_libraries(${GTEST_LIBRARIES})
|
|
21 endif()
|