Mercurial > hg > orthanc
annotate Resources/CMake/GoogleTestConfiguration.cmake @ 8:3a584803783e
build with visual studio
author | jodogne |
---|---|
date | Fri, 20 Jul 2012 11:00:49 +0200 |
parents | 3959d33612cc |
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() |