Mercurial > hg > orthanc
view Resources/CMake/GoogleTestConfiguration.cmake @ 121:a7e98bbeaf48 Orthanc-0.2.2
close
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 29 Apr 2013 12:54:48 +0200 |
parents | 3959d33612cc |
children | bdc60d16cc98 |
line wrap: on
line source
if (${STATIC_BUILD}) SET(GTEST_SOURCES_DIR ${CMAKE_BINARY_DIR}/gtest-1.6.0) DownloadPackage("http://googletest.googlecode.com/files/gtest-1.6.0.zip" "${GTEST_SOURCES_DIR}" "" "") include_directories( ${GTEST_SOURCES_DIR}/include ${GTEST_SOURCES_DIR} ) set(GTEST_SOURCES ${GTEST_SOURCES_DIR}/src/gtest-all.cc ) else() include(FindGTest) include_directories(${GTEST_INCLUDE_DIRS}) link_libraries(${GTEST_LIBRARIES}) endif()