Mercurial > hg > orthanc
annotate Resources/CMake/GoogleTestConfiguration.cmake @ 0:3959d33612cc
initial commit
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 19 Jul 2012 14:32:22 +0200 |
parents | |
children | bdc60d16cc98 |
rev | line source |
---|---|
0 | 1 if (${STATIC_BUILD}) |
2 SET(GTEST_SOURCES_DIR ${CMAKE_BINARY_DIR}/gtest-1.6.0) | |
3 DownloadPackage("http://googletest.googlecode.com/files/gtest-1.6.0.zip" "${GTEST_SOURCES_DIR}" "" "") | |
4 | |
5 include_directories( | |
6 ${GTEST_SOURCES_DIR}/include | |
7 ${GTEST_SOURCES_DIR} | |
8 ) | |
9 | |
10 set(GTEST_SOURCES | |
11 ${GTEST_SOURCES_DIR}/src/gtest-all.cc | |
12 ) | |
13 | |
14 else() | |
15 include(FindGTest) | |
16 include_directories(${GTEST_INCLUDE_DIRS}) | |
17 link_libraries(${GTEST_LIBRARIES}) | |
18 endif() |